forked from SteamWar/SteamWar
Update stuff from peer review
This commit is contained in:
-5
@@ -79,9 +79,4 @@ public class FixedRegionSystem implements RegionSystem {
|
||||
public Stream<Region> getRegions() {
|
||||
return REGION_MAP.values().stream();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isModular() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user