Skip to content

Commit 516d79a

Browse files
committed
Update IWorldHandler.java
1 parent c59ad31 commit 516d79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v1_21_11/src/main/java/net/countercraft/movecraft/compat/v1_21_11/IWorldHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public void setBlockFast(@NotNull Location location, @NotNull MovecraftRotation
278278
private void moveBlockEntity(@NotNull Level nativeWorld, @NotNull BlockPos newPosition, @NotNull BlockEntity tile) {
279279
LevelChunk chunk = nativeWorld.getChunkAt(newPosition);
280280
try {
281-
var positionField = BlockEntity.class.getDeclaredField("o"); // o is obfuscated worldPosition
281+
var positionField = BlockEntity.class.getDeclaredField("worldPosition");
282282
UnsafeUtils.setField(positionField, tile, newPosition);
283283
}
284284
catch (NoSuchFieldException e) {

0 commit comments

Comments
 (0)