Skip to content
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/
@@ -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);

2 comments on commit 6c13a98


This comment has been minimized.

Copy link

replied Jan 29, 2017

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


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.