Fixed an edge case where a TileEntity loose its data on placement

This commit is contained in:
Unknown 2018-09-09 18:19:36 +02:00 committed by unknown
parent 1443d311f6
commit 088afc80c9

View file

@ -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);
}
}