summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-02 00:27:46 +0100
committer zaaarf <zaaarf@proton.me>2023-03-02 00:27:46 +0100
commit0678e882c5fcb3f5b0edd68c8275d6cee6f357cf (patch)
tree5d7bae8ad850ad2d16a9db471bec607a4c8506e4
parent5cb00414696184fb1ef4febbad7b255bb3174449 (diff)
fix: updated to newer patcher version
-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();