parent
11bb746e62
commit
cfae16c46f
|
@ -36,7 +36,7 @@ public class PlayerInventoryViewListen implements Listener {
|
|||
Inventory inv = e.getInventory();
|
||||
if (inv.getType() == InventoryType.ENCHANTING) {
|
||||
ItemStack item = e.getInventory().getContents()[0];
|
||||
if (item.getType() != Material.AIR) {
|
||||
if (item != null && item.getType() != Material.AIR) {
|
||||
player.getInventory().addItem(item);
|
||||
}
|
||||
plugin.invcontrol.clearEnchantBench(player);
|
||||
|
|
Loading…
Reference in New Issue