mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix displayItem can spawn in the block
Former-commit-id: 4bd8fc58c8d43ad152e4e3e4a286754b2c0154d0 [formerly 424bf20cf29969566ccafc5ae6a575c89862a117] Former-commit-id: 60ed88366f5526bf995cccf18ef07eca815b585f
This commit is contained in:
1 parent
22586781a4
commit
4f6336e2aa
1 file changed
+4
@@ -49,6 +49,10 @@ public class RealDisplayItem implements DisplayItem {
|
||||
Util.debugLog(trace.getClassName() + "#" + trace.getMethodName() + "#" + trace.getLineNumber());
|
||||
}
|
||||
}
|
||||
if (!Util.isAir(getDisplayLocation().add(0, 1, 0).getBlock().getType())) {
|
||||
Util.debugLog("Can't spawn displayItem cause not AIR block.");
|
||||
return;
|
||||
}
|
||||
|
||||
ShopDisplayItemSpawnEvent shopDisplayItemSpawnEvent = new ShopDisplayItemSpawnEvent(shop, originalItemStack);
|
||||
Bukkit.getPluginManager().callEvent(shopDisplayItemSpawnEvent);
|
||||
|
||||
Reference in new issue
Block a user