Update stuff

This commit is contained in:
2025-08-05 21:21:43 +02:00
parent cadc9eec2c
commit 615c68d427
9 changed files with 23 additions and 29 deletions

View File

@@ -128,9 +128,4 @@ public class DynamicRegionSystem implements RegionSystem {
neighbours.remove(GlobalRegion.INSTANCE);
return ((Set<DynamicRegion>)(Set) neighbours).stream();
}
@Override
public boolean isModular() {
return true;
}
}

View File

@@ -21,7 +21,6 @@ package de.steamwar.bausystem.region.dynamic.global;
import com.sk89q.worldedit.extent.clipboard.Clipboard;
import de.steamwar.bausystem.region.*;
import de.steamwar.bausystem.region.dynamic.DynamicRegion;
import de.steamwar.bausystem.region.dynamic.NonNormalFlagStorage;
import de.steamwar.bausystem.region.dynamic.RegionDataRepository;
import de.steamwar.bausystem.utils.PasteBuilder;
@@ -89,7 +88,7 @@ public class GlobalRegion implements Region {
}
};
private static final RegionConfig GLOBAL_CONFIG = new RegionConfig(null);
private static final GameModeConfig GLOBAL_CONFIG = new GameModeConfig(null);
private static FlagStorage FLAG_STORAGE = new NonNormalFlagStorage();
static {
@@ -130,7 +129,7 @@ public class GlobalRegion implements Region {
}
@Override
public @NonNull RegionConfig getGameModeConfig() {
public @NonNull GameModeConfig getGameModeConfig() {
return GLOBAL_CONFIG;
}

View File

@@ -19,7 +19,7 @@
package de.steamwar.bausystem.region.dynamic.normal.work;
import de.steamwar.bausystem.region.RegionConfig;
import de.steamwar.bausystem.region.GameModeConfig;
import de.steamwar.bausystem.region.RegionType;
import de.steamwar.bausystem.region.dynamic.RegionConstructorData;
import de.steamwar.bausystem.region.dynamic.normal.WorkArea;
@@ -41,7 +41,7 @@ public class MicroWarGear21WorkRegion extends WorkRegion {
private static final File TESTBLOCK_FILE = new File(MODE_DIR, "Testblock.schem");
@Getter
private final RegionConfig gameModeConfig = new RegionConfig(null); // TODO: Implement
private final GameModeConfig gameModeConfig = new GameModeConfig(null); // TODO: Implement
public MicroWarGear21WorkRegion(int minX, int minZ) {
super(minX, minZ);

View File

@@ -19,7 +19,7 @@
package de.steamwar.bausystem.region.dynamic.normal.work;
import de.steamwar.bausystem.region.RegionConfig;
import de.steamwar.bausystem.region.GameModeConfig;
import de.steamwar.bausystem.region.RegionType;
import de.steamwar.bausystem.region.dynamic.RegionConstructorData;
import de.steamwar.bausystem.region.dynamic.normal.WorkArea;
@@ -41,7 +41,7 @@ public class MiniWarGear21WorkRegion extends WorkRegion {
private static final File TESTBLOCK_FILE = new File(MODE_DIR, "Testblock.schem");
@Getter
private final RegionConfig gameModeConfig = new RegionConfig(null); // TODO: Implement
private final GameModeConfig gameModeConfig = new GameModeConfig(null); // TODO: Implement
public MiniWarGear21WorkRegion(int minX, int minZ) {
super(minX, minZ);

View File

@@ -19,7 +19,7 @@
package de.steamwar.bausystem.region.dynamic.normal.work;
import de.steamwar.bausystem.region.RegionConfig;
import de.steamwar.bausystem.region.GameModeConfig;
import de.steamwar.bausystem.region.RegionType;
import de.steamwar.bausystem.region.dynamic.RegionConstructorData;
import de.steamwar.bausystem.region.dynamic.normal.WorkArea;
@@ -41,7 +41,7 @@ public class WarGear21WorkRegion extends WorkRegion {
private static final File TESTBLOCK_FILE = new File(MODE_DIR, "Testblock.schem");
@Getter
private final RegionConfig gameModeConfig = new RegionConfig(null); // TODO: Implement
private final GameModeConfig gameModeConfig = new GameModeConfig(null); // TODO: Implement
public WarGear21WorkRegion(int minX, int minZ) {
super(minX, minZ);

View File

@@ -19,7 +19,7 @@
package de.steamwar.bausystem.region.dynamic.normal.work;
import de.steamwar.bausystem.region.RegionConfig;
import de.steamwar.bausystem.region.GameModeConfig;
import de.steamwar.bausystem.region.RegionType;
import de.steamwar.bausystem.region.dynamic.RegionConstructorData;
import de.steamwar.bausystem.region.dynamic.normal.WorkArea;
@@ -41,7 +41,7 @@ public class WarShip21WorkRegion extends WorkRegion {
private static final File TESTBLOCK_FILE = new File(MODE_DIR, "Testblock.schem");
@Getter
private final RegionConfig gameModeConfig = new RegionConfig(null); // TODO: Implement
private final GameModeConfig gameModeConfig = new GameModeConfig(null); // TODO: Implement
public WarShip21WorkRegion(int minX, int minZ) {
super(minX, minZ);

View File

@@ -20,7 +20,7 @@
package de.steamwar.bausystem.region.dynamic.path;
import de.steamwar.bausystem.region.FlagStorage;
import de.steamwar.bausystem.region.RegionConfig;
import de.steamwar.bausystem.region.GameModeConfig;
import de.steamwar.bausystem.region.RegionHistory;
import de.steamwar.bausystem.region.RegionType;
import de.steamwar.bausystem.region.dynamic.DynamicRegion;
@@ -40,7 +40,7 @@ public class PathRegion extends DynamicRegion {
private FlagStorage flagStorage = new NonNormalFlagStorage();
private final Area area;
private final RegionConfig config = new RegionConfig(null);
private final GameModeConfig config = new GameModeConfig(null);
public PathRegion(int minX, int minZ) {
super(minX, minZ);
@@ -103,7 +103,7 @@ public class PathRegion extends DynamicRegion {
}
@Override
public @NonNull RegionConfig getGameModeConfig() {
public @NonNull GameModeConfig getGameModeConfig() {
return config;
}

View File

@@ -19,11 +19,11 @@
package de.steamwar.bausystem.region.dynamic.spawn;
import de.steamwar.bausystem.region.FlagStorage;
import de.steamwar.bausystem.region.RegionConfig;
import de.steamwar.bausystem.region.RegionHistory;
import de.steamwar.bausystem.region.RegionType;
import de.steamwar.bausystem.region.dynamic.*;
import de.steamwar.bausystem.region.*;
import de.steamwar.bausystem.region.dynamic.DynamicRegion;
import de.steamwar.bausystem.region.dynamic.NonNormalFlagStorage;
import de.steamwar.bausystem.region.dynamic.RegionConstructorData;
import de.steamwar.bausystem.region.dynamic.RegionDataRepository;
import lombok.NonNull;
import org.bukkit.Bukkit;
@@ -39,7 +39,7 @@ public class SpawnPathRegion extends DynamicRegion {
private FlagStorage flagStorage = new NonNormalFlagStorage();
private final Area area;
private final RegionConfig config = new RegionConfig(null);
private final GameModeConfig config = new GameModeConfig(null);
public SpawnPathRegion(int minX, int minZ) {
super(minX, minZ);
@@ -101,7 +101,7 @@ public class SpawnPathRegion extends DynamicRegion {
}
@Override
public @NonNull RegionConfig getGameModeConfig() {
public @NonNull GameModeConfig getGameModeConfig() {
return config;
}

View File

@@ -20,7 +20,7 @@
package de.steamwar.bausystem.region.dynamic.spawn;
import de.steamwar.bausystem.region.FlagStorage;
import de.steamwar.bausystem.region.RegionConfig;
import de.steamwar.bausystem.region.GameModeConfig;
import de.steamwar.bausystem.region.RegionHistory;
import de.steamwar.bausystem.region.RegionType;
import de.steamwar.bausystem.region.dynamic.DynamicRegion;
@@ -39,7 +39,7 @@ public class SpawnRegion extends DynamicRegion {
private FlagStorage flagStorage = new NonNormalFlagStorage();
private final Area area;
private final RegionConfig config = new RegionConfig(null);
private final GameModeConfig config = new GameModeConfig(null);
public SpawnRegion(int minX, int minZ) {
super(minX, minZ);
@@ -88,7 +88,7 @@ public class SpawnRegion extends DynamicRegion {
}
@Override
public @NonNull RegionConfig getGameModeConfig() {
public @NonNull GameModeConfig getGameModeConfig() {
return config;
}