aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches-Unmapped/0659-Fix-console-spam-when-removing-chests-in-water.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches-Unmapped/0659-Fix-console-spam-when-removing-chests-in-water.patch')
-rw-r--r--Spigot-Server-Patches-Unmapped/0659-Fix-console-spam-when-removing-chests-in-water.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/Spigot-Server-Patches-Unmapped/0659-Fix-console-spam-when-removing-chests-in-water.patch b/Spigot-Server-Patches-Unmapped/0659-Fix-console-spam-when-removing-chests-in-water.patch
new file mode 100644
index 0000000000..d05dbe7aff
--- /dev/null
+++ b/Spigot-Server-Patches-Unmapped/0659-Fix-console-spam-when-removing-chests-in-water.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: HexedHero <[email protected]>
+Date: Thu, 19 Nov 2020 02:07:10 +0000
+Subject: [PATCH] Fix console spam when removing chests in water
+
+
+diff --git a/src/main/java/net/minecraft/world/level/block/BlockChest.java b/src/main/java/net/minecraft/world/level/block/BlockChest.java
+index b2c29cff5883868cb56a4e376ab946ac929abc94..a45ee959f41e7f349ff2c309f21fa44ec671cb87 100644
+--- a/src/main/java/net/minecraft/world/level/block/BlockChest.java
++++ b/src/main/java/net/minecraft/world/level/block/BlockChest.java
+@@ -239,7 +239,7 @@ public class BlockChest extends BlockChestAbstract<TileEntityChest> implements I
+ @Override
+ public void remove(IBlockData iblockdata, World world, BlockPosition blockposition, IBlockData iblockdata1, boolean flag) {
+ if (!iblockdata.a(iblockdata1.getBlock())) {
+- TileEntity tileentity = world.getTileEntity(blockposition);
++ TileEntity tileentity = world.getTileEntity(blockposition, false); // Paper - Don't validate TE - Fix console spam when removing chests in water
+
+ if (tileentity instanceof IInventory) {
+ InventoryUtils.dropInventory(world, blockposition, (IInventory) tileentity);