mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 15:33:19 +01:00
f3b00978d9
Really, don't touch! may harm your cat!
27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
From 97ab3dbce9bd88f8593e8cb5f1f01a1c9866fd72 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Wed, 24 Jan 2018 20:06:39 -0500
|
|
Subject: [PATCH] MC-99321 - Dont check for blocked double chest for hoppers
|
|
etc
|
|
|
|
This is a source of MAJOR lag for hoppers, as well as a gameplay bug.
|
|
|
|
This removes the necessity to disable the cat on chest behavior to improve performance.
|
|
|
|
now performance will be improved even if you have cat chest detection on.
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockChest.java b/src/main/java/net/minecraft/server/BlockChest.java
|
|
index 633c75ffe..68cdd3970 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockChest.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockChest.java
|
|
@@ -208,6 +208,7 @@ public class BlockChest extends BlockTileEntity implements IFluidSource, IFluidC
|
|
|
|
if (blockpropertychesttype1 != BlockPropertyChestType.SINGLE && blockpropertychesttype != blockpropertychesttype1 && iblockdata1.get(BlockChest.FACING) == iblockdata.get(BlockChest.FACING)) {
|
|
if (!flag && this.a(world, blockposition1)) {
|
|
+ //if (!flag && this.e(world, blockposition1)) { // Paper - check for allowBlocked flag - MC-99321
|
|
return null;
|
|
}
|
|
|
|
--
|
|
2.18.0
|
|
|