From 9ff41ed426b9cc92d3bc9ca019617636d343ffe8 Mon Sep 17 00:00:00 2001 From: Mariell Hoversholm Date: Tue, 3 Aug 2021 12:13:43 +0200 Subject: [PATCH] fix: boats' bounding boxes must be deflated, not inflated (#6314) Fixes GH-6312. Signed-off-by: Mariell Hoversholm --- patches/server/Improve-boat-collision-performance.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Improve-boat-collision-performance.patch b/patches/server/Improve-boat-collision-performance.patch index f646af0577..87d0146eda 100644 --- a/patches/server/Improve-boat-collision-performance.patch +++ b/patches/server/Improve-boat-collision-performance.patch @@ -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) {