Fixed an edge case where a TileEntity loose its data on placement
This commit is contained in:
parent
1443d311f6
commit
088afc80c9
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ public abstract class BlockAbstractContainer extends BlockContainer implements I
|
|||
tagCompound.setInteger("y", blockPos.getY());
|
||||
tagCompound.setInteger("z", blockPos.getZ());
|
||||
tileEntity.readFromNBT(tagCompound);
|
||||
tileEntity.markDirty();
|
||||
world.notifyBlockUpdate(blockPos, blockState, blockState, 3);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue