Skip to content

Commit

Permalink
Fix Magnet pulling fake item entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruling-0 committed Jan 17, 2025
1 parent 07ed885 commit 7a1053a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void onUpdate(ItemStack stack, World world, Entity entity, int slot, bool
boolean playSound = false;

for (EntityItem item : items) {
if (item.getEntityItem() == null) {
if (item.getEntityItem() == null || item.delayBeforeCanPickup < 0) {
continue;
}

Expand Down

0 comments on commit 7a1053a

Please sign in to comment.