Skip to content

Commit

Permalink
Fix xp
Browse files Browse the repository at this point in the history
  • Loading branch information
GroobleDierne committed Dec 28, 2024
1 parent 36ce004 commit 3cffb05
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ public static void giveReward(Player player, GrindingCategory category, String i
LaBoulangerieMmo.PLUGIN.getConfig().getConfigurationSection("talent-grinding").getKeys(false);

for (String talentName : keys) {
if (LaBoulangerieMmo.talentsRegistry.getTalent(talentName) == null) return;
if (LaBoulangerieMmo.talentsRegistry.getTalent(talentName) == null) continue;

FileConfiguration config = LaBoulangerieMmo.PLUGIN.getConfig();

ConfigurationSection section = LaBoulangerieMmo.PLUGIN.getConfig()
.getConfigurationSection("talent-grinding." + talentName + "." + category.toString());

if (section == null) return;
if (section == null) continue;

if (section.getKeys(false).contains(identifier)) {
double xpAmount = section.getDouble(identifier);
Expand Down

0 comments on commit 3cffb05

Please sign in to comment.