1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2025-10-02 12:37:27 +00:00

修复箱子的标题为Null是产生的报错...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2016-02-14 14:44:20 +08:00
parent 9669c6cc8e
commit 82f6c99c01
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ public class ProtectListener implements Listener {
final Inventory inv = e.getInventory();
final int solt = e.getSlot();
if (inv.getType() != InventoryType.PLAYER && inv.getType() != InventoryType.HOPPER) {
if (inv.getTitle().equalsIgnoreCase(plugin.getConfigManager().getGuiTitle())) {
if (inv.getTitle() != null && inv.getTitle().equalsIgnoreCase(plugin.getConfigManager().getGuiTitle())) {
e.setCancelled(true);
p.closeInventory();
}