Update WorldListener.java
This commit is contained in:
parent
85a2027d47
commit
e1fba0573c
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user