2121import static com .volmit .hiddenore .generation .Blocks .getReplacement ;
2222
2323public class GenerationRules extends BlockPopulator implements Listener {
24- private volatile Map <String , Map <Material , Material >> worldOverrides = Map .of ();
24+ private volatile Map <String , Map <Material , Material >> worldExceptions = Map .of ();
2525 private volatile Map <Material , Material > defaults = Map .of ();
2626 private volatile boolean enabled ;
2727 private final HiddenOre plugin ;
@@ -37,19 +37,19 @@ public void reload() {
3737 if (config == null || !config .getBoolean ("enabled" , false )) {
3838 enabled = false ;
3939 defaults = Map .of ();
40- worldOverrides = Map .of ();
40+ worldExceptions = Map .of ();
4141 return ;
4242 }
4343
44- final ConfigurationSection overrides = config .getConfigurationSection ("overrides " );
45- if (overrides == null ) {
46- this .worldOverrides = Map .of ();
44+ final ConfigurationSection exceptions = config .getConfigurationSection ("exceptions " );
45+ if (exceptions == null ) {
46+ this .worldExceptions = Map .of ();
4747 } else {
48- final Map <String , Map <Material , Material >> worldOverrides = new HashMap <>();
49- for (final String world : overrides .getKeys (false )) {
50- worldOverrides .put (world , parseReplacements (overrides .getConfigurationSection (world )));
48+ final Map <String , Map <Material , Material >> worldExceptions = new HashMap <>();
49+ for (final String world : exceptions .getKeys (false )) {
50+ worldExceptions .put (world , parseReplacements (exceptions .getConfigurationSection (world )));
5151 }
52- this .worldOverrides = Map .copyOf (worldOverrides );
52+ this .worldExceptions = Map .copyOf (worldExceptions );
5353 }
5454
5555 defaults = parseReplacements (config .getConfigurationSection ("global" ));
@@ -86,7 +86,7 @@ public void populate(final @NotNull WorldInfo world,
8686 final int chunkX ,
8787 final int chunkZ ,
8888 final @ NotNull LimitedRegion region ) {
89- final var blocks = worldOverrides .getOrDefault (world .getName (), defaults );
89+ final var blocks = worldExceptions .getOrDefault (world .getName (), defaults );
9090 if (blocks .isEmpty ()) return ;
9191
9292 final int buffer = region .getBuffer () >> 4 ;
0 commit comments