mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed ghost item drops when hitting an entity. Closes #513
This commit is contained in:
parent
1920233090
commit
5d8f9e37b4
1 changed files with 4 additions and 4 deletions
|
@ -167,11 +167,11 @@ public class PhysicsBodyProjectileEntity extends PersistentProjectileEntity impl
|
|||
stack.damage(1 + random.nextInt(10), sw, null, i -> {
|
||||
playSound(USounds.Vanilla.ENTITY_ITEM_BREAK, 1, 1);
|
||||
});
|
||||
}
|
||||
if (!stack.isEmpty()) {
|
||||
dropStack(stack);
|
||||
}
|
||||
setStack(ItemStack.EMPTY);
|
||||
discard();
|
||||
}
|
||||
}
|
||||
}
|
||||
super.onEntityHit(hit);
|
||||
|
|
Loading…
Reference in a new issue