Add check that Entity saves to disk before saving entity to saved chunkloading data.
Returning false to addEntityID prevents the entity from being saved (cred to LexManos) Entities which do not save to disk but are chunkloaders causes errors the next time the world loads. This ought to fix it.
This commit is contained in:
parent
9a1c12c492
commit
1e8c2a9acf
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue