Spatial IO fixes (#3195)

* fix warning when transfering entities
* clean removed TileEntities from the ITickable list.
This commit is contained in:
fscan
2017-11-04 23:12:17 +01:00
committed by GitHub
parent 3cf48b2291
commit fe5d9251eb
3 changed files with 47 additions and 31 deletions
@@ -122,6 +122,11 @@ public class StorageHelper
}
else
{
// really remove from world, forge only marks it as removed
final boolean wasDead = entity.isDead;
oldWorld.removeEntityDangerously( entity );
entity.isDead = wasDead;
entity.getServer().getPlayerList().transferEntityToWorld( entity, entity.dimension,
entity.getServer().getWorld( entity.dimension ), (WorldServer) link.dim, new METeleporter( newWorld, link ) );
}