Removed "size" from skill trees

This commit is contained in:
Jules 2023-10-08 00:36:07 +02:00
parent 2d779d19bf
commit 35484b5893
3 changed files with 2 additions and 9 deletions

View File

@ -125,7 +125,7 @@ public abstract class InventoryItem<T extends GeneratedInventory> {
@NotNull
public ItemStack display(T inv) {
return display(inv, modelData);
return display(inv, 0);
}
@NotNull

View File

@ -307,7 +307,6 @@ public class SkillTreeViewer extends EditableInventory {
holders.register("current-state", statusNames.getOrDefault(status, status.name()));
holders.register("max-level", node.getMaxLevel());
holders.register("max-children", node.getMaxChildren());
holders.register("size", node.getSize());
holders.register("point-consumed", node.getSkillTreePointsConsumed());
holders.register("display-type", node.getNodeType());
} else {

View File

@ -46,7 +46,7 @@ public class SkillTreeNode implements ExperienceObject {
private final ExperienceTable experienceTable;
// The max level the skill tree node can have and the max amount of children it can have.
private final int maxLevel, maxChildren, size;
private final int maxLevel, maxChildren;
private final List<SkillTreeNode> children = new ArrayList<>();
/**
@ -77,7 +77,6 @@ public class SkillTreeNode implements ExperienceObject {
}
}
name = Objects.requireNonNull(config.getString("name"), "Could not find node name");
size = Objects.requireNonNull(config.getInt("size"));
isRoot = config.getBoolean("is-root", false);
skillTreePointsConsumed = config.getInt("point-consumed", 1);
permissionRequired = config.getString("permission-required");
@ -180,10 +179,6 @@ public class SkillTreeNode implements ExperienceObject {
return children;
}
public int getSize() {
return size;
}
/**
* @return The node identifier relative to its skill tree, like "extra_strength"
*/
@ -255,7 +250,6 @@ public class SkillTreeNode implements ExperienceObject {
Placeholders holders = new Placeholders();
holders.register("name", getName());
holders.register("node-state", playerData.getNodeStatus(this));
holders.register("size", getSize());
holders.register("level", playerData.getNodeLevel(this));
holders.register("max-level", getMaxLevel());
holders.register("max-children", getMaxChildren());