Skip to content

Commit

Permalink
v1.3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
byteful committed Nov 19, 2023
1 parent f95f586 commit d9fad8d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ public static void handleReward(LevelToolsItem tool, Player player) {
if (keyNum != tool.getLevel()) continue;
if (tool.getLastHandledReward() == keyNum) return;

tool.setLastHandledReward(keyNum);
setHand(player, tool.getItemStack());
for (String rewardStr : rewardCs.getStringList(key)) {
final String[] split = rewardStr.split(" ");

Expand All @@ -257,7 +259,6 @@ public static void handleReward(LevelToolsItem tool, Player player) {
}
});
}
tool.setLastHandledReward(keyNum);

return;
}
Expand Down

0 comments on commit d9fad8d

Please sign in to comment.