Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
cb15a5de
Commit
cb15a5de
authored
Apr 29, 2022
by
Melledy
Browse files
Deregister scenes if no one is in them instead of deregistering when no entities are in them
parent
ffc1f801
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/world/Scene.java
View file @
cb15a5de
...
...
@@ -225,7 +225,7 @@ public class Scene {
}
// Deregister scene if not in use
if
(
this
.
get
Entities
().
size
()
<=
0
&&
!
this
.
dontDestroyWhenEmpty
())
{
if
(
this
.
get
PlayerCount
()
<=
0
&&
!
this
.
dontDestroyWhenEmpty
())
{
this
.
getWorld
().
deregisterScene
(
this
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment