forked from SteamWar/SteamWar
Reduce to 24 compiler errors
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
package de.steamwar.bausystem.features.team;
|
||||
|
||||
import com.sk89q.worldedit.EditSession;
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.features.team.boundary.BoundaryViewer;
|
||||
import de.steamwar.bausystem.region.Region;
|
||||
@@ -74,7 +75,7 @@ public class SkinCommand extends SWCommand {
|
||||
|
||||
String name = String.join(" ", names);
|
||||
File arenaFile = new File("sections19/" + name + "/" + typeKuerzel + "Arena.schem");
|
||||
File testblockFile = region.getTestblockArea().isPresent() ? new File("sections19/" + name + "/" + typeKuerzel + "Testblock.schem") : null;
|
||||
File testblockFile = !region.getTestblockArea().isEmpty() ? new File("sections19/" + name + "/" + typeKuerzel + "Testblock.schem") : null;
|
||||
|
||||
arenaFile.getParentFile().mkdirs();
|
||||
if (testblockFile != null) {
|
||||
@@ -89,9 +90,11 @@ public class SkinCommand extends SWCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
Region.copy(region.getArea().getMinPoint(false), region.getArea().getMaxPoint(false), arenaFile);
|
||||
EditSession editSession = region.getArea().copy(false);
|
||||
// TODO: Save editSession to file
|
||||
if (testblockFile != null) {
|
||||
Region.copy(region.getTestblockArea().getMinPoint(false), region.getTestblockArea().getMaxPoint(false), testblockFile);
|
||||
editSession = region.getTestblockArea().copy(false);
|
||||
// TODO: Save editSession to file
|
||||
}
|
||||
|
||||
YAPIONObject yapionObject = new YAPIONObject();
|
||||
|
||||
Reference in New Issue
Block a user