Change method of not ticking empty scenes (#2211)

This commit is contained in:
Nazrin
2023-06-16 11:04:16 -07:00
committed by GitHub
Unverified
parent 248af4abfb
commit 89376d58bf
2 changed files with 3 additions and 5 deletions
@@ -556,10 +556,6 @@ public final class Scene {
this.finishLoading();
this.checkPlayerRespawn();
if (this.tickCount++ % 10 == 0) this.broadcastPacket(new PacketSceneTimeNotify(this));
if (this.getPlayerCount() <= 0 && !this.dontDestroyWhenEmpty) {
this.getScriptManager().onDestroy();
this.getWorld().deregisterScene(this);
}
}
/** Validates a player's current position. Teleports the player if the player is out of bounds. */