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
107111d3
Commit
107111d3
authored
Jul 26, 2022
by
Magix
Committed by
GitHub
Jul 26, 2022
Browse files
SceneScriptManager fix nullPointer error
Merge pull request #1581 from akatatsu27/development
parents
7600f706
7ca947b0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/scripts/SceneScriptManager.java
View file @
107111d3
...
@@ -213,7 +213,7 @@ public class SceneScriptManager {
...
@@ -213,7 +213,7 @@ public class SceneScriptManager {
}
}
for
(
int
entityId
:
region
.
getEntities
())
{
for
(
int
entityId
:
region
.
getEntities
())
{
if
(!
region
.
getMetaRegion
().
contains
(
getScene
().
getEntityById
(
entityId
).
getPosition
()))
{
if
(
getScene
().
getEntityById
(
entityId
)
==
null
||
!
region
.
getMetaRegion
().
contains
(
getScene
().
getEntityById
(
entityId
).
getPosition
()))
{
region
.
removeEntity
(
entityId
);
region
.
removeEntity
(
entityId
);
}
}
...
...
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