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;
}
if (!game.getDroppedItems().contains(event.getItem().getItemStack())) {
event.setCancelled(true);
return;
}
// if (!game.getDroppedItems().contains(event.getItem().getItemStack())) {
// event.setCancelled(true);
// return;
// }
game.getDroppedItems().remove(event.getItem().getItemStack());
game.removeEntityToRemove(event.getItem());