NPE check when removing player from region zones.

This commit is contained in:
MobiusDevelopment
2022-01-29 23:38:26 +00:00
parent 26045e9bf0
commit 212b19797f
26 changed files with 163 additions and 54 deletions

View File

@@ -12884,10 +12884,11 @@ public class Player extends Playable
}
}
// Remove from world regions zones
if (getWorldRegion() != null)
// Remove from world regions zones.
final WorldRegion region = getWorldRegion();
if (region != null)
{
getWorldRegion().removeFromZones(this);
region.removeFromZones(this);
}
try