diff --git a/src/main/java/org/maxgamer/quickshop/Shop/RealDisplayItem.java b/src/main/java/org/maxgamer/quickshop/Shop/RealDisplayItem.java index 07b6be550..23c21273e 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/RealDisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/RealDisplayItem.java @@ -49,7 +49,7 @@ public class RealDisplayItem implements DisplayItem { Util.debugLog(trace.getClassName() + "#" + trace.getMethodName() + "#" + trace.getLineNumber()); } } - if (!Util.isAir(getDisplayLocation().add(0, 1, 0).getBlock().getType())) { + if (!Util.isAir(getDisplayLocation().getBlock().getType())) { Util.debugLog("Can't spawn the displayItem because there is not an AIR block above the shopblock."); return; } diff --git a/src/main/java/org/maxgamer/quickshop/Util/Util.java b/src/main/java/org/maxgamer/quickshop/Util/Util.java index a2063a3bc..ba274243a 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/Util.java +++ b/src/main/java/org/maxgamer/quickshop/Util/Util.java @@ -974,7 +974,7 @@ public class Util { if (mat == Material.VOID_AIR) return true; } catch (Throwable t) { - return false; + //ignore } return false; }