From b270d413958ef58629b93312e7b1891af629a002 Mon Sep 17 00:00:00 2001 From: alemidev Date: Tue, 7 Feb 2023 12:52:05 +0100 Subject: [PATCH] chore: use spaces in example --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 2ca13eb..100ce07 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ To load patches created with this library, a Launch Plugin loader is necessary ( ### Example ```java // file src/main/java/example/patches/SamplePatch.java - package example.patches; - import ftbsc.lll.IInjector; - public class SamplePatch implements IInjector { - public String name() { return "SamplePatch"; } - public String targetClass() { return "net.minecraft.client.Minecraft"; } - public String methodName() { return "func_71407_l"; } // tick() - public String methodDesc() { return "()V"; } - public void inject(ClassNode clazz, MethodNode main) { - InsnList insnList = new InsnList(); - insnList.add(new InsnNode(POP)); - main.instructions.insert(insnList); - } - } + package example.patches; + import ftbsc.lll.IInjector; + public class SamplePatch implements IInjector { + public String name() { return "SamplePatch"; } + public String targetClass() { return "net.minecraft.client.Minecraft"; } + public String methodName() { return "func_71407_l"; } // tick() + public String methodDesc() { return "()V"; } + public void inject(ClassNode clazz, MethodNode main) { + InsnList insnList = new InsnList(); + insnList.add(new InsnNode(POP)); + main.instructions.insert(insnList); + } + } // file src/main/resources/META-INF/services/ftbsc.lll.IInjector - example.patches.SamplePatch + example.patches.SamplePatch ```