Skip to content

Commit

Permalink
Fix NPE, restore PlayerData when using claim tool (GriefPrevention#2359)
Browse files Browse the repository at this point in the history
Initialization missed in 5d0ebde#diff-3e987f7e8304fdcbd9f9f571afbbebec186bc70583b97676a68c6b5aac604478L1924
  • Loading branch information
Jikoo authored Aug 23, 2024
1 parent 9dca78a commit 330fd1e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,8 @@ else if (materialInHand == instance.config_claims_investigationTool && hand == E
return;
}

playerData = this.dataStore.getPlayerData(player.getUniqueId());

//if he's resizing a claim and that claim hasn't been deleted since he started resizing it
if (playerData.claimResizing != null && playerData.claimResizing.inDataStore)
{
Expand Down

0 comments on commit 330fd1e

Please sign in to comment.