mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
Fix bee carts dropping invalid item when broken
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user