Update WorldListener.java

This commit is contained in:
Luca 2021-11-23 16:48:52 +01:00
parent 85a2027d47
commit e1fba0573c

View File

@ -214,10 +214,10 @@ public class WorldListener implements Listener {
return; return;
} }
if (!game.getDroppedItems().contains(event.getItem().getItemStack())) { // if (!game.getDroppedItems().contains(event.getItem().getItemStack())) {
event.setCancelled(true); // event.setCancelled(true);
return; // return;
} // }
game.getDroppedItems().remove(event.getItem().getItemStack()); game.getDroppedItems().remove(event.getItem().getItemStack());
game.removeEntityToRemove(event.getItem()); game.removeEntityToRemove(event.getItem());