ForgePatch/patches/minecraft/net/minecraft/entity/item/FallingBlockEntity.java.patch

12 lines
764 B
Diff

--- a/net/minecraft/entity/item/FallingBlockEntity.java
+++ b/net/minecraft/entity/item/FallingBlockEntity.java
@@ -153,7 +153,7 @@
((FallingBlock)block).func_176502_a_(this.field_70170_p, blockpos1, this.field_175132_d, blockstate);
}
- if (this.field_145810_d != null && block instanceof ITileEntityProvider) {
+ if (this.field_145810_d != null && this.field_175132_d.hasTileEntity()) {
TileEntity tileentity = this.field_70170_p.func_175625_s(blockpos1);
if (tileentity != null) {
CompoundNBT compoundnbt = tileentity.func_189515_b(new CompoundNBT());