mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 04:57:18 +00:00
Deregister scenes if no one is in them instead of deregistering when no entities are in them
This commit is contained in:
parent
ffc1f801e6
commit
cb15a5dec9
@ -225,7 +225,7 @@ public class Scene {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Deregister scene if not in use
|
// Deregister scene if not in use
|
||||||
if (this.getEntities().size() <= 0 && !this.dontDestroyWhenEmpty()) {
|
if (this.getPlayerCount() <= 0 && !this.dontDestroyWhenEmpty()) {
|
||||||
this.getWorld().deregisterScene(this);
|
this.getWorld().deregisterScene(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user