mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-26 04:35:56 +01:00
Added protection for unowned islands
Islands can become unowned during the async island level calculation process.
This commit is contained in:
parent
3038cca894
commit
bb21dbb266
@ -217,7 +217,8 @@ public class CalcIslandLevel {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.result.deathHandicap =
|
// At this point, it may be that the island has become unowned.
|
||||||
|
this.result.deathHandicap = this.island.getOwner() == null ? 0 :
|
||||||
this.addon.getPlayers().getDeaths(this.world, this.island.getOwner());
|
this.addon.getPlayers().getDeaths(this.world, this.island.getOwner());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user