mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-21 15:29:54 +08:00
Change method of not ticking empty scenes (#2211)
This commit is contained in:
committed by
GitHub
Unverified
parent
248af4abfb
commit
89376d58bf
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user