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
7ca947b0
Commit
7ca947b0
authored
Jul 26, 2022
by
akatatsu27
Browse files
fix nullPointer error
parent
bb8ae4c4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/scripts/SceneScriptManager.java
View file @
7ca947b0
...
@@ -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