Skip to content

Commit

Permalink
fix in legacy as well
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Dec 27, 2023
1 parent ad27487 commit 70abf9e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ private void onItemDrop(ItemSpawnEvent event) {
for (Entity entity : event.getEntity().getChunk().getEntities()) {
if (entity.getType().equals(EntityType.DROPPED_ITEM)) {
count++;
}
if (count > maxDroppedItemsPerChunk) {
if (usingWhitelist && whitelistedItems.contains(event.getEntity().getItemStack().getType())) continue;
entity.remove();
if (count > maxDroppedItemsPerChunk) {
if (usingWhitelist && whitelistedItems.contains(event.getEntity().getItemStack().getType())) continue;
entity.remove();
}
}
}
}
Expand Down

0 comments on commit 70abf9e

Please sign in to comment.