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:
@@ -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) {
|
||||
Reference in New Issue
Block a user