forked from Upstream/mmocore
Cleanup
This commit is contained in:
parent
3754a88880
commit
8ac6af34af
@ -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() {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user