From 22e0df384ecfa72af6ed7bf35263bdecfc2f346e Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Mon, 10 May 2021 11:09:15 +0800 Subject: [PATCH] Debug --- src/main/java/org/maxgamer/quickshop/util/Util.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/maxgamer/quickshop/util/Util.java b/src/main/java/org/maxgamer/quickshop/util/Util.java index db3a06b97..9f55955dd 100644 --- a/src/main/java/org/maxgamer/quickshop/util/Util.java +++ b/src/main/java/org/maxgamer/quickshop/util/Util.java @@ -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) {