Update stuff from peer review

This commit is contained in:
2025-08-05 20:59:43 +02:00
parent bbd2bcae35
commit b695a7e089
16 changed files with 49 additions and 31 deletions
@@ -79,9 +79,4 @@ public class FixedRegionSystem implements RegionSystem {
public Stream<Region> getRegions() {
return REGION_MAP.values().stream();
}
@Override
public boolean isModular() {
return false;
}
}
@@ -90,7 +90,7 @@ public final class FixedGlobalRegion implements Region {
}
};
private static final RegionConfig GLOBAL_CONFIG = new RegionConfig(null);
private static final GameModeConfig GLOBAL_CONFIG = new GameModeConfig(null);
private FixedGlobalRegion() {
}
@@ -126,7 +126,7 @@ public final class FixedGlobalRegion implements Region {
}
@Override
public @NonNull RegionConfig getGameModeConfig() {
public @NonNull GameModeConfig getGameModeConfig() {
return GLOBAL_CONFIG;
}
@@ -56,7 +56,7 @@ public class FixedRegion implements Region {
private final Area testblock;
private final int floorLevel;
private final int waterLevel;
private final RegionConfig regionConfig;
private final GameModeConfig gameModeConfig;
private final RegionHistory regionHistory = new RegionHistory.Impl(20);
private final RegionBackups regionBackups = new RegionBackups() {
@@ -336,7 +336,7 @@ public class FixedRegion implements Region {
break;
}
}
this.regionConfig = new RegionConfig(found);
this.gameModeConfig = new GameModeConfig(found);
}
@Override
@@ -370,8 +370,8 @@ public class FixedRegion implements Region {
}
@Override
public @NonNull RegionConfig getGameModeConfig() {
return regionConfig;
public @NonNull GameModeConfig getGameModeConfig() {
return gameModeConfig;
}
@Override