mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 04:12:54 +08:00
SceneScriptManager fix nullPointer error
Merge pull request #1581 from akatatsu27/development
This commit is contained in:
commit
107111d3fc
@ -213,7 +213,7 @@ public class SceneScriptManager {
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user