aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/ftbsc/bscv/patches/BoatPatch.java6
-rw-r--r--src/main/java/ftbsc/bscv/patches/PacketPatch.java4
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();