Merge pull request #274 from iChun/patch-2
Add check that Entity saves to disk before saving entity to saved chunkloading data.
This commit is contained in:
commit
26159e3ed9
|
@ -744,7 +744,7 @@ public class ForgeChunkManager
|
||||||
{
|
{
|
||||||
ticket.setCompoundTag("ModData", tick.modData);
|
ticket.setCompoundTag("ModData", tick.modData);
|
||||||
}
|
}
|
||||||
if (tick.ticketType == Type.ENTITY && tick.entity != null)
|
if (tick.ticketType == Type.ENTITY && tick.entity != null && tick.entity.addEntityID(new NBTTagCompound()))
|
||||||
{
|
{
|
||||||
ticket.setInteger("chunkX", MathHelper.floor_double(tick.entity.chunkCoordX));
|
ticket.setInteger("chunkX", MathHelper.floor_double(tick.entity.chunkCoordX));
|
||||||
ticket.setInteger("chunkZ", MathHelper.floor_double(tick.entity.chunkCoordZ));
|
ticket.setInteger("chunkZ", MathHelper.floor_double(tick.entity.chunkCoordZ));
|
||||||
|
|
Loading…
Reference in New Issue