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