SteamWar/MissileWars
Archiviert
13
0

Fix Bows in Chest

Dieser Commit ist enthalten in:
Chaoscaot 2020-08-30 21:52:13 +02:00
Ursprung 3645657683
Commit 1775f4d366

Datei anzeigen

@ -84,8 +84,8 @@ public class ItemListener extends BasicListener {
@EventHandler(ignoreCancelled = true) @EventHandler(ignoreCancelled = true)
public void onInventoryClose(InventoryCloseEvent event) { public void onInventoryClose(InventoryCloseEvent event) {
if(event.getInventory().contains(MWTeam.getBow())) { if(event.getInventory().contains(Material.BOW)) {
event.getInventory().setItem(event.getInventory().first(MWTeam.getBow()), new ItemStack(Material.AIR)); event.getInventory().setItem(event.getInventory().first(Material.BOW), new ItemStack(Material.AIR));
event.getPlayer().getInventory().addItem(MWTeam.getBow()); event.getPlayer().getInventory().addItem(MWTeam.getBow());
} }
} }