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() {
|
public void clearSkillTreePoints() {
|
||||||
skillTreePoints.clear();
|
skillTreePoints.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearNodeTimesClaimed() {
|
public void clearNodeTimesClaimed() {
|
||||||
Map<String, Integer> copy= new HashMap<>(tableItemClaims);
|
final Iterator<String> ite = tableItemClaims.keySet().iterator();
|
||||||
copy.forEach((str, val) -> {
|
while (ite.hasNext())
|
||||||
if (str.startsWith(SkillTreeNode.KEY_PREFIX))
|
if (ite.next().startsWith(SkillTreeNode.KEY_PREFIX))
|
||||||
tableItemClaims.remove(str);
|
ite.remove();
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<Map.Entry<String, Integer>> getNodeLevelsEntrySet() {
|
public Set<Map.Entry<String, Integer>> getNodeLevelsEntrySet() {
|
||||||
|
@ -23,7 +23,6 @@ public abstract class EditableInventory {
|
|||||||
private String name;
|
private String name;
|
||||||
private int slots;
|
private int slots;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This set is linked so it keeps the order/priority in
|
* This set is linked so it keeps the order/priority in
|
||||||
* which the items are loaded from the config.
|
* which the items are loaded from the config.
|
||||||
@ -83,7 +82,6 @@ public abstract class EditableInventory {
|
|||||||
return adaptorType;
|
return adaptorType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public FileConfiguration getConfig() {
|
public FileConfiguration getConfig() {
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ public class InventoryManager {
|
|||||||
try {
|
try {
|
||||||
inv.reload(new ConfigFile("/gui", inv.getId()).getConfig());
|
inv.reload(new ConfigFile("/gui", inv.getId()).getConfig());
|
||||||
} catch (IllegalArgumentException exception) {
|
} 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