mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 09:39:40 -05:00
Fix must have 2 AIR above the chest to spawn the display
Former-commit-id: 22be0a50606191e06ebbf5fb138de04e876b815b [formerly c9df245874896b090245f9ccf44f6cbae3d30c34] Former-commit-id: 5df20d5c043dee3eaa3c99990b0dad821e2c7c84
This commit is contained in:
1 parent
16b22d200d
commit
2d7ee66bce
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -974,7 +974,7 @@ public class Util {
|
||||
if (mat == Material.VOID_AIR)
|
||||
return true;
|
||||
} catch (Throwable t) {
|
||||
return false;
|
||||
//ignore
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user