diff options
Diffstat (limited to 'patches/server/0256-Add-option-to-prevent-players-from-moving-into-unloa.patch')
-rw-r--r-- | patches/server/0256-Add-option-to-prevent-players-from-moving-into-unloa.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0256-Add-option-to-prevent-players-from-moving-into-unloa.patch b/patches/server/0256-Add-option-to-prevent-players-from-moving-into-unloa.patch index 7ad3e12b37..5e69669d5c 100644 --- a/patches/server/0256-Add-option-to-prevent-players-from-moving-into-unloa.patch +++ b/patches/server/0256-Add-option-to-prevent-players-from-moving-into-unloa.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Add option to prevent players from moving into unloaded diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java -index 5f3d7ea96d690b68897d9092c624c77e49822af4..a87ea0f22b44c2fb67fd51bc8c9b0067aacac7de 100644 +index 5f3d7ea96d690b68897d9092c624c77e49822af4..31be5462945287bff7e5c1a3c1f38d6a510ddeb0 100644 --- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java @@ -500,9 +500,9 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl @@ -31,7 +31,7 @@ index 5f3d7ea96d690b68897d9092c624c77e49822af4..a87ea0f22b44c2fb67fd51bc8c9b0067 + !worldserver.areChunksLoadedForMove(this.player.getBoundingBox().expandTowards(new Vec3(toX, toY, toZ).subtract(this.player.position()))) || + !worldserver.areChunksLoadedForMove(entity.getBoundingBox().expandTowards(new Vec3(toX, toY, toZ).subtract(entity.position()))) + )) { -+ this.connection.send(new ClientboundMoveVehiclePacket(entity)); ++ this.connection.send(ClientboundMoveVehiclePacket.fromEntity(entity)); + return; + } + // Paper end - Prevent moving into unloaded chunks |