Skip to content

Commit

Permalink
Update BiomeUpdateHelper.java
Browse files Browse the repository at this point in the history
Prevents an NPE when changing island owner.
#92
  • Loading branch information
tastybento committed Jun 25, 2021
1 parent d600977 commit cb01687
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public BiomeUpdateHelper(BiomesAddon addon,
this.canWithdraw = canWithdraw;

this.worldProtectionFlag = BiomesAddon.BIOMES_WORLD_PROTECTION.isSetForWorld(this.world);
// Initialize standing location to be the location of the target user
this.standingLocation = this.targetUser.getLocation();
}


Expand Down

0 comments on commit cb01687

Please sign in to comment.