* Fixed NPE in shop.
This commit is contained in:
parent
e3b9543dec
commit
ff7522ad22
@ -57,7 +57,9 @@ public class OnInventoryClickEvent implements Listener {
|
|||||||
}
|
}
|
||||||
int playerTokens = W.shop.getFile().getInt(
|
int playerTokens = W.shop.getFile().getInt(
|
||||||
player.getName() + ".tokens");
|
player.getName() + ".tokens");
|
||||||
if (item.getType().equals(Material.AIR))
|
if (item == null)
|
||||||
|
return;
|
||||||
|
if (item.getItemMeta().getDisplayName() == null)
|
||||||
return;
|
return;
|
||||||
if (item.getItemMeta()
|
if (item.getItemMeta()
|
||||||
.getDisplayName()
|
.getDisplayName()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user