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:
cpw 2012-11-24 11:14:21 -08:00
commit 26159e3ed9
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ public class ForgeChunkManager
{
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("chunkZ", MathHelper.floor_double(tick.entity.chunkCoordZ));