Skip to content
Permalink
Browse files

Kill minecarts via remove rather than damage.

  • Loading branch information...
me4502 committed Jan 20, 2017
1 parent 272d4d8 commit 6c13a98cb0a13f81638450c796580d39f2b5bbeb
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/main/java/com/sk89q/craftbook/util/EntityUtil.java
@@ -64,8 +64,6 @@ public static void killEntity(Entity ent) {

if(ent instanceof Damageable)
((Damageable) ent).damage(((Damageable) ent).getHealth());
else if(ent instanceof Minecart)
((Minecart) ent).setDamage(41);
else
ent.remove();
}

2 comments on commit 6c13a98

@DarkArc

This comment has been minimized.

Copy link
Collaborator

replied Jan 29, 2017

Wasn't this so the Minecart would drop, or is that no longer the desired behavior?

@me4502

This comment has been minimized.

Copy link
Member Author

replied Jan 29, 2017

Currently the place that uses it doesn't want it to drop - as the items spawned anyway. The damage wasn't actually killing the cart.

Please sign in to comment.
You can’t perform that action at this time.