fix: updated to newer patcher version

This commit is contained in:
zaaarf 2023-03-02 00:27:46 +01:00
parent 5cb0041469
commit 0678e882c5
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C
2 changed files with 5 additions and 5 deletions

View file

@ -37,7 +37,7 @@ public class BoatPatch {
public abstract void controlBoat(); public abstract void controlBoat();
@Injector @Injector
public static void inject(ClassNode clazz, MethodNode main) { public void inject(ClassNode clazz, MethodNode main) {
// Hook at method start // Hook at method start
LabelNode skip = new LabelNode(); LabelNode skip = new LabelNode();
InsnSequence is = new InsnSequence(); InsnSequence is = new InsnSequence();
@ -61,7 +61,7 @@ public class BoatPatch {
public abstract void clampRotation(Entity e); public abstract void clampRotation(Entity e);
@Injector @Injector
public static void inject(ClassNode clazz, MethodNode main) { public void inject(ClassNode clazz, MethodNode main) {
// Hook at method start // Hook at method start
LabelNode skip = new LabelNode(); LabelNode skip = new LabelNode();
InsnSequence is = new InsnSequence(); InsnSequence is = new InsnSequence();
@ -85,7 +85,7 @@ public class BoatPatch {
public abstract boolean isNoGravity(); public abstract boolean isNoGravity();
@Injector @Injector
public static void inject(ClassNode clazz, MethodNode main) { public void inject(ClassNode clazz, MethodNode main) {
// Hook at method start // Hook at method start
LabelNode skip = new LabelNode(); LabelNode skip = new LabelNode();
InsnSequence is = new InsnSequence(); InsnSequence is = new InsnSequence();

View file

@ -33,7 +33,7 @@ public class PacketPatch {
public abstract void channelRead0(ChannelHandlerContext ctx, IPacket pak); public abstract void channelRead0(ChannelHandlerContext ctx, IPacket pak);
@Injector @Injector
public static void inject(ClassNode clazz, MethodNode main) { public void inject(ClassNode clazz, MethodNode main) {
// ALOAD, GETFIELD, INVOKEINTERFACE, IFEQ // ALOAD, GETFIELD, INVOKEINTERFACE, IFEQ
AbstractInsnNode found = PatternMatcher.builder() AbstractInsnNode found = PatternMatcher.builder()
.opcodes(ALOAD, GETFIELD, INVOKEINTERFACE, IFEQ) .opcodes(ALOAD, GETFIELD, INVOKEINTERFACE, IFEQ)
@ -68,7 +68,7 @@ public class PacketPatch {
public abstract void sendPacket(IPacket pak, GenericFutureListener gfl); public abstract void sendPacket(IPacket pak, GenericFutureListener gfl);
@Injector @Injector
public static void inject(ClassNode clazz, MethodNode main) { public void inject(ClassNode clazz, MethodNode main) {
// hook at the top // hook at the top
LabelNode skip = new LabelNode(); LabelNode skip = new LabelNode();
InsnSequence is = new InsnSequence(); InsnSequence is = new InsnSequence();