Skip to content

Commit

Permalink
Made fields local
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 31, 2021
1 parent 3e6ba03 commit 1c55fea
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ abstract class AbstractBoxedBiomeGenerator implements BiomeGenerator {
ENV_MAP = Collections.unmodifiableMap(e);
}

private final SortedMap<Double, Biome> northEast;
private final SortedMap<Double, Biome> southEast;
private final SortedMap<Double, Biome> northWest;
private final SortedMap<Double, Biome> southWest;

protected final Map<BlockFace, SortedMap<Double, Biome>> quadrants;

private final Boxed addon;
Expand All @@ -62,10 +57,10 @@ protected AbstractBoxedBiomeGenerator(Boxed boxed, Environment env, Biome defaul
addon.saveResource("biomes.yml", true);
}
YamlConfiguration config = YamlConfiguration.loadConfiguration(biomeFile);
northEast = loadQuad(config, ENV_MAP.get(env) + ".north-east");
southEast = loadQuad(config, ENV_MAP.get(env) + ".south-east");
northWest = loadQuad(config, ENV_MAP.get(env) + ".north-west");
southWest = loadQuad(config, ENV_MAP.get(env) + ".south-west");
SortedMap<Double, Biome> northEast = loadQuad(config, ENV_MAP.get(env) + ".north-east");
SortedMap<Double, Biome> southEast = loadQuad(config, ENV_MAP.get(env) + ".south-east");
SortedMap<Double, Biome> northWest = loadQuad(config, ENV_MAP.get(env) + ".north-west");
SortedMap<Double, Biome> southWest = loadQuad(config, ENV_MAP.get(env) + ".south-west");

quadrants = new EnumMap<>(BlockFace.class);
quadrants.put(BlockFace.NORTH_EAST, northEast);
Expand Down

0 comments on commit 1c55fea

Please sign in to comment.