mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-09-10 17:33:55 +03:00
fix nullPointer error
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user