1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

添加SuperItem的null判断...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-11-18 12:56:45 +08:00
parent f2c7c9c2b1
commit 0de3e1a0c7

View File

@ -157,6 +157,9 @@ public class PlayerListener implements Listener {
return;
}
final Block b = e.getClickedBlock();
if (b == null || b.getType() == null) {
return;
}
// If that wasn't a shop, search nearby shops
if (b.getType() == Material.WALL_SIGN) {
final Block attached = Util.getAttached(b);