mirror of
https://e.coding.net/circlecloud/SimpleEssential.git
synced 2025-11-26 21:56:02 +00:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user