This commit is contained in:
Ghost_chu committed 2021-05-10 11:09:15 +08:00
1 parent 074c90e3cd
commit 22e0df384e
1 file changed
+5
@@ -905,6 +905,11 @@ public class Util {
if (!(state instanceof Chest)) {
return null;
}
org.bukkit.block.data.type.Chest chestBlockData = (org.bukkit.block.data.type.Chest) state.getBlockData();
Util.debugLog("Facing to block: " + state.getBlock().getRelative(chestBlockData.getFacing()));
Util.debugLog("Facing op to block: " + state.getBlock().getRelative(chestBlockData.getFacing().getOppositeFace()));
Chest oneSideOfChest = (Chest) state;
InventoryHolder chestHolder = oneSideOfChest.getInventory().getHolder();
if (chestHolder instanceof DoubleChest) {