Call markDirty when restoring blocks with TileEntities. (#2809)
This change makes sure the updated tileentity is saved properly within the chunk.
This commit is contained in:
parent
9f28c90365
commit
5a20950902
1 changed files with 2 additions and 0 deletions
|
@ -178,6 +178,7 @@ public class BlockSnapshot implements Serializable
|
||||||
if (te != null)
|
if (te != null)
|
||||||
{
|
{
|
||||||
te.readFromNBT(getNbt());
|
te.readFromNBT(getNbt());
|
||||||
|
te.markDirty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,6 +214,7 @@ public class BlockSnapshot implements Serializable
|
||||||
if (te != null)
|
if (te != null)
|
||||||
{
|
{
|
||||||
te.readFromNBT(getNbt());
|
te.readFromNBT(getNbt());
|
||||||
|
te.markDirty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue