From 5797d0e0bec3cb86e7a9b5e7d963fc136b9b96a1 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 13 Sep 2023 21:33:08 +0200 Subject: [PATCH] Fix getXYZ of Vec3i --- .../com/moulberry/axiom/packet/SetBlockPacketListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/moulberry/axiom/packet/SetBlockPacketListener.java b/src/main/java/com/moulberry/axiom/packet/SetBlockPacketListener.java index ac312c3..213f326 100644 --- a/src/main/java/com/moulberry/axiom/packet/SetBlockPacketListener.java +++ b/src/main/java/com/moulberry/axiom/packet/SetBlockPacketListener.java @@ -22,9 +22,9 @@ public class SetBlockPacketListener implements AxiomPacketListener { private static final Reflection.Method setBlock = Reflection.getTypedMethod(Level.class, boolean.class, BlockPos.class, BlockState.class, int.class); - private static final Reflection.Method getX = Reflection.getTypedMethod(Vec3i.class, int.class, 0); - private static final Reflection.Method getY = Reflection.getTypedMethod(Vec3i.class, int.class, 1); - private static final Reflection.Method getZ = Reflection.getTypedMethod(Vec3i.class, int.class, 2); + private static final Reflection.Method getX = Reflection.getTypedMethod(Vec3i.class, int.class, 1); + private static final Reflection.Method getY = Reflection.getTypedMethod(Vec3i.class, int.class, 2); + private static final Reflection.Method getZ = Reflection.getTypedMethod(Vec3i.class, int.class, 3); private static final Reflection.Method ackBlockChangesUpTo = Reflection.getMethod(ServerGamePacketListenerImpl.class, int.class); @Override