Fix bee carts dropping invalid item when broken

This commit is contained in:
mezz committed 2016-06-28 13:01:39 -07:00
1 parent 4fcc785e85
commit 40eece7d77
2 files changed
+5 -3

No files matched your search

@@ -104,8 +104,10 @@ public abstract class EntityMinecartForestry extends EntityMinecart implements I
@Override
public void killMinecart(DamageSource damageSource) {
super.killMinecart(damageSource);
Block block = getDisplayTile().getBlock();
entityDropItem(new ItemStack(block, 1, block.getMetaFromState(getDisplayTile())), 0.0F);
if (this.worldObj.getGameRules().getBoolean("doEntityDrops")) {
Block block = getDisplayTile().getBlock();
entityDropItem(new ItemStack(block), 0.0F);
}
}
// fix cart contents rendering as black in the End dimension