Skip to content

Commit 4ecb01a

Browse files
Robotgiggleobject-Object
authored andcommitted
Forge config cleanup
1 parent cb35490 commit 4ecb01a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Forge/src/main/java/at/petrak/hexcasting/forge/ForgeHexConfig.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,6 @@ public static class Server implements HexConfig.ServerConfigAccess {
151151
private static ForgeConfigSpec.BooleanValue doesTrueNameHaveAmbit;
152152
private static ForgeConfigSpec.DoubleValue traderScrollChance;
153153

154-
private static ForgeConfigSpec.ConfigValue<List<? extends String>> fewScrollTables;
155-
private static ForgeConfigSpec.ConfigValue<List<? extends String>> someScrollTables;
156-
private static ForgeConfigSpec.ConfigValue<List<? extends String>> manyScrollTables;
157-
158-
159154
public Server(ForgeConfigSpec.Builder builder) {
160155
builder.push("Spells");
161156
maxOpCount = builder.comment("The maximum number of actions that can be executed in one tick, to avoid " +
@@ -181,6 +176,10 @@ public Server(ForgeConfigSpec.Builder builder) {
181176
traderScrollChance = builder.comment("The chance for wandering traders to sell an Ancient Scroll")
182177
.defineInRange("traderScrollChance", DEFAULT_TRADER_SCROLL_CHANCE, 0.0, 1.0);
183178

179+
// builders for loot (eg. scroll/lore/cypher pools and chances) should go here
180+
181+
builder.pop();
182+
184183
actionDenyList = builder.comment(
185184
"Resource locations of disallowed actions. Trying to cast one of these will result in a mishap.")
186185
.defineList("actionDenyList", List.of(), Server::isValidReslocArg);
@@ -193,7 +192,7 @@ public Server(ForgeConfigSpec.Builder builder) {
193192
.defineList("tpDimDenyList", DEFAULT_DIM_TP_DENYLIST, Server::isValidReslocArg);
194193

195194
doesTrueNameHaveAmbit = builder.comment(
196-
"when false makes player reference iotas behave as normal entity reference iotas")
195+
"When false, makes player reference iotas behave as normal entity reference iotas")
197196
.define("doesTrueNameHaveAmbit", DEFAULT_TRUE_NAME_HAS_AMBIT);
198197
}
199198

0 commit comments

Comments
 (0)