From 6ebc6c8254e72656aa5807dea1fdc32ce50bc292 Mon Sep 17 00:00:00 2001 From: Samsuik Date: Sun, 24 Aug 2025 23:13:10 +0100 Subject: [PATCH] fix boats being placed outside the world border --- .../net/minecraft/world/item/BoatItem.java.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sakura-server/minecraft-patches/sources/net/minecraft/world/item/BoatItem.java.patch diff --git a/sakura-server/minecraft-patches/sources/net/minecraft/world/item/BoatItem.java.patch b/sakura-server/minecraft-patches/sources/net/minecraft/world/item/BoatItem.java.patch new file mode 100644 index 0000000..5adc39a --- /dev/null +++ b/sakura-server/minecraft-patches/sources/net/minecraft/world/item/BoatItem.java.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/world/item/BoatItem.java ++++ b/net/minecraft/world/item/BoatItem.java +@@ -63,7 +_,7 @@ + return InteractionResult.FAIL; + } else { + boat.setYRot(player.getYRot()); +- if (!level.noCollision(boat, boat.getBoundingBox())) { ++ if (!level.noCollision(boat, boat.getBoundingBox()) || !level.getWorldBorder().isWithinBounds(boat.getBoundingBox())) { // Sakura - fix boats being placed outside the world border + return InteractionResult.FAIL; + } else { + if (!level.isClientSide) {