mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 18:47:40 +01:00
fix: boats' bounding boxes must be deflated, not inflated (#6314)
Fixes GH-6312. Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
This commit is contained in:
parent
e51f909450
commit
9ff41ed426
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
entityboat.setType(this.type);
|
||||
entityboat.setYRot(user.getYRot());
|
||||
- if (!world.noCollision(entityboat, entityboat.getBoundingBox().inflate(-0.1D))) {
|
||||
+ if (!world.noCollision(entityboat, entityboat.getBoundingBox().inflate(net.minecraft.Util.COLLISION_EPSILON))) {
|
||||
+ if (!world.noCollision(entityboat, entityboat.getBoundingBox().inflate(-net.minecraft.Util.COLLISION_EPSILON))) { // Paper
|
||||
return InteractionResultHolder.fail(itemstack);
|
||||
} else {
|
||||
if (!world.isClientSide) {
|
||||
|
|
Loading…
Add table
Reference in a new issue