This commit is contained in:
Jules 2023-03-03 14:20:56 +01:00
parent 3754a88880
commit 8ac6af34af
3 changed files with 6 additions and 8 deletions

View File

@ -222,12 +222,12 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
public void clearSkillTreePoints() {
skillTreePoints.clear();
}
public void clearNodeTimesClaimed() {
Map<String, Integer> copy= new HashMap<>(tableItemClaims);
copy.forEach((str, val) -> {
if (str.startsWith(SkillTreeNode.KEY_PREFIX))
tableItemClaims.remove(str);
});
final Iterator<String> ite = tableItemClaims.keySet().iterator();
while (ite.hasNext())
if (ite.next().startsWith(SkillTreeNode.KEY_PREFIX))
ite.remove();
}
public Set<Map.Entry<String, Integer>> getNodeLevelsEntrySet() {

View File

@ -23,7 +23,6 @@ public abstract class EditableInventory {
private String name;
private int slots;
/*
* This set is linked so it keeps the order/priority in
* which the items are loaded from the config.
@ -83,7 +82,6 @@ public abstract class EditableInventory {
return adaptorType;
}
public FileConfiguration getConfig() {
return config;
}

View File

@ -40,7 +40,7 @@ public class InventoryManager {
try {
inv.reload(new ConfigFile("/gui", inv.getId()).getConfig());
} catch (IllegalArgumentException exception) {
MMOCore.log(Level.WARNING, "Could not load inventory " + inv.getId() + ": " + exception.getMessage());
MMOCore.log(Level.WARNING, "Could not load inventory '" + inv.getId() + "': " + exception.getMessage());
}
});
}