Revert "Automatically set the new instance of an entity when adding it to an instance"

This reverts commit 2fd7f2b3
This commit is contained in:
jglrxavpok 2020-05-01 23:38:56 +02:00
parent edbc189b98
commit 4ca4631f8a
1 changed files with 0 additions and 2 deletions

View File

@ -274,8 +274,6 @@ public abstract class Instance implements BlockModifier, DataContainer {
lastInstance.removeEntity(entity); // If entity is in another instance, remove it from there and add it to this
}
entity.setInstance(this);
long[] visibleChunksEntity = ChunkUtils.getChunksInRange(entity.getPosition(), MinecraftServer.ENTITY_VIEW_DISTANCE);
boolean isPlayer = entity instanceof Player;