From 1775f4d366c006677a0e8defbb2249b3dc8ada4b Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 30 Aug 2020 21:52:13 +0200 Subject: [PATCH] Fix Bows in Chest --- src/de/steamwar/misslewars/listener/ItemListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/misslewars/listener/ItemListener.java b/src/de/steamwar/misslewars/listener/ItemListener.java index 273937d..5b25cda 100644 --- a/src/de/steamwar/misslewars/listener/ItemListener.java +++ b/src/de/steamwar/misslewars/listener/ItemListener.java @@ -84,8 +84,8 @@ public class ItemListener extends BasicListener { @EventHandler(ignoreCancelled = true) public void onInventoryClose(InventoryCloseEvent event) { - if(event.getInventory().contains(MWTeam.getBow())) { - event.getInventory().setItem(event.getInventory().first(MWTeam.getBow()), new ItemStack(Material.AIR)); + if(event.getInventory().contains(Material.BOW)) { + event.getInventory().setItem(event.getInventory().first(Material.BOW), new ItemStack(Material.AIR)); event.getPlayer().getInventory().addItem(MWTeam.getBow()); } }