mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Fix boat placements
This commit is contained in:
19
patches/server/0239-Fix-boat-placements.patch
Normal file
19
patches/server/0239-Fix-boat-placements.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Mon, 2 Aug 2021 16:10:12 -0500
|
||||
Subject: [PATCH] Fix boat placements
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/item/BoatItem.java b/src/main/java/net/minecraft/world/item/BoatItem.java
|
||||
index daf24491886c3a5cb031389bfed8e62a6e62afe3..861a8cdbcf7dff01e70e1d20b30bfe13c7164401 100644
|
||||
--- a/src/main/java/net/minecraft/world/item/BoatItem.java
|
||||
+++ b/src/main/java/net/minecraft/world/item/BoatItem.java
|
||||
@@ -72,7 +72,7 @@ public class BoatItem extends Item {
|
||||
entityboat.setCustomName(itemstack.getHoverName());
|
||||
}
|
||||
// Purpur end
|
||||
- if (!world.noCollision(entityboat, entityboat.getBoundingBox().inflate(net.minecraft.Util.COLLISION_EPSILON))) {
|
||||
+ if (!world.noCollision(entityboat, entityboat.getBoundingBox().inflate(-0.01D))) {
|
||||
return InteractionResultHolder.fail(itemstack);
|
||||
} else {
|
||||
if (!world.isClientSide) {
|
||||
Reference in New Issue
Block a user