forked from SteamWar/SteamWar
Update Region.Area
This commit is contained in:
-22
@@ -23,9 +23,7 @@ import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.features.region.WireframeCommand;
|
||||
import de.steamwar.bausystem.region.dynamic.*;
|
||||
import de.steamwar.bausystem.region.dynamic.global.GlobalRegion;
|
||||
import de.steamwar.bausystem.region.dynamic.path.PathRegion;
|
||||
import de.steamwar.bausystem.shared.Pair;
|
||||
import de.steamwar.bausystem.utils.PasteBuilder;
|
||||
import lombok.NonNull;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
@@ -33,7 +31,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
@@ -91,25 +88,6 @@ public class DynamicRegionSystem implements RegionSystem {
|
||||
.collect(Collectors.toUnmodifiableMap(entry -> entry.getValue().identifier(), Map.Entry::getKey));
|
||||
|
||||
DynamicRegionRepository.loadRegions();
|
||||
// [STDOUT] PATH 239
|
||||
// [STDOUT] DRY 4
|
||||
// [STDOUT] DRY_SPECIAL 18
|
||||
// [STDOUT] WET 2
|
||||
// [STDOUT] WET_SPECIAL 9
|
||||
regionTypeMap.forEach((type, regions) -> {
|
||||
if (type != RegionType.PATH) return;
|
||||
|
||||
MultiTileArea multiTileArea = new MultiTileArea() {
|
||||
@Override
|
||||
public void place(Location location, PasteBuilder pasteBuilder, boolean extension) {
|
||||
}
|
||||
};
|
||||
for (Region region : regions) {
|
||||
PathRegion pathRegion = (PathRegion) region;
|
||||
multiTileArea.addTile(pathRegion.getTile());
|
||||
}
|
||||
multiTileArea.quantize();
|
||||
});
|
||||
new DynamicRegionCommand();
|
||||
new WireframeCommand();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user