From 0678e882c5fcb3f5b0edd68c8275d6cee6f357cf Mon Sep 17 00:00:00 2001 From: zaaarf Date: Thu, 2 Mar 2023 00:27:46 +0100 Subject: [PATCH] fix: updated to newer patcher version --- src/main/java/ftbsc/bscv/patches/BoatPatch.java | 6 +++--- src/main/java/ftbsc/bscv/patches/PacketPatch.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/ftbsc/bscv/patches/BoatPatch.java b/src/main/java/ftbsc/bscv/patches/BoatPatch.java index 581243f..8c55a85 100644 --- a/src/main/java/ftbsc/bscv/patches/BoatPatch.java +++ b/src/main/java/ftbsc/bscv/patches/BoatPatch.java @@ -37,7 +37,7 @@ public class BoatPatch { public abstract void controlBoat(); @Injector - public static void inject(ClassNode clazz, MethodNode main) { + public void inject(ClassNode clazz, MethodNode main) { // Hook at method start LabelNode skip = new LabelNode(); InsnSequence is = new InsnSequence(); @@ -61,7 +61,7 @@ public class BoatPatch { public abstract void clampRotation(Entity e); @Injector - public static void inject(ClassNode clazz, MethodNode main) { + public void inject(ClassNode clazz, MethodNode main) { // Hook at method start LabelNode skip = new LabelNode(); InsnSequence is = new InsnSequence(); @@ -85,7 +85,7 @@ public class BoatPatch { public abstract boolean isNoGravity(); @Injector - public static void inject(ClassNode clazz, MethodNode main) { + public void inject(ClassNode clazz, MethodNode main) { // Hook at method start LabelNode skip = new LabelNode(); InsnSequence is = new InsnSequence(); diff --git a/src/main/java/ftbsc/bscv/patches/PacketPatch.java b/src/main/java/ftbsc/bscv/patches/PacketPatch.java index daf2a7b..a1b8cb0 100644 --- a/src/main/java/ftbsc/bscv/patches/PacketPatch.java +++ b/src/main/java/ftbsc/bscv/patches/PacketPatch.java @@ -33,7 +33,7 @@ public class PacketPatch { public abstract void channelRead0(ChannelHandlerContext ctx, IPacket pak); @Injector - public static void inject(ClassNode clazz, MethodNode main) { + public void inject(ClassNode clazz, MethodNode main) { // ALOAD, GETFIELD, INVOKEINTERFACE, IFEQ AbstractInsnNode found = PatternMatcher.builder() .opcodes(ALOAD, GETFIELD, INVOKEINTERFACE, IFEQ) @@ -68,7 +68,7 @@ public class PacketPatch { public abstract void sendPacket(IPacket pak, GenericFutureListener gfl); @Injector - public static void inject(ClassNode clazz, MethodNode main) { + public void inject(ClassNode clazz, MethodNode main) { // hook at the top LabelNode skip = new LabelNode(); InsnSequence is = new InsnSequence();