9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-26 10:19:15 +00:00

fix boats being placed outside the world border

This commit is contained in:
Samsuik
2025-08-24 23:13:10 +01:00
parent 1ab219495f
commit 6ebc6c8254

View File

@@ -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) {