Skip to content

Commit

Permalink
fix skill tree locking on respawn
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Mar 16, 2024
1 parent ae2b9f8 commit c6dea82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ private void unlockSkillTree(Holder<ISkillTree> tree) {
}

private void lockSkillTree(Holder<ISkillTree> tree) {
for (ISkill<T> enabledSkill : this.enabledSkills) {
var enabledSkills = new ArrayList<>( this.enabledSkills);
for (ISkill<T> enabledSkill : enabledSkills) {
if (enabledSkill.allowedSkillTrees().map(tree::is, tree::is)) {
this.disableSkill(enabledSkill);
}
Expand Down

0 comments on commit c6dea82

Please sign in to comment.