NPE check when removing player from region zones.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user