Fix Region.Prototype.SECTION_PATH #165
@ -42,7 +42,6 @@ import org.bukkit.inventory.meta.ItemMeta;
|
|||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.bukkit.scheduler.BukkitTask;
|
import org.bukkit.scheduler.BukkitTask;
|
||||||
|
|
||||||
import java.nio.file.Paths;
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
@ -105,7 +105,6 @@ public class Region {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static class Prototype{
|
public static class Prototype{
|
||||||
private static final String SECTION_PATH = Bukkit.getWorlds().get(0).getWorldFolder().getAbsolutePath() + "/";
|
|
||||||
private static final Map<String, Prototype> prototypes = new HashMap<>();
|
private static final Map<String, Prototype> prototypes = new HashMap<>();
|
||||||
|
|
||||||
private final int sizeX;
|
private final int sizeX;
|
||||||
@ -147,7 +146,7 @@ public class Region {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void fastreset(Region region){
|
public void fastreset(Region region){
|
||||||
File file = new File(SECTION_PATH + schematic);
|
File file = new File(schematic);
|
||||||
int x = region.minX + offsetX + sizeX/2;
|
int x = region.minX + offsetX + sizeX/2;
|
||||||
int y = region.minY + offsetY;
|
int y = region.minY + offsetY;
|
||||||
int z = region.minZ + offsetZ + sizeZ/2;
|
int z = region.minZ + offsetZ + sizeZ/2;
|
||||||
@ -166,7 +165,7 @@ public class Region {
|
|||||||
int y = region.minY + offsetY;
|
int y = region.minY + offsetY;
|
||||||
int z = region.minZ + offsetZ + sizeZ / 2;
|
int z = region.minZ + offsetZ + sizeZ / 2;
|
||||||
if(schem == null)
|
if(schem == null)
|
||||||
paste(new File(SECTION_PATH + schematic), x, y, z, rotate);
|
paste(new File(schematic), x, y, z, rotate);
|
||||||
else
|
else
|
||||||
paste(schem.load(), x, y, z, rotate);
|
paste(schem.load(), x, y, z, rotate);
|
||||||
}
|
}
|
||||||
@ -180,7 +179,7 @@ public class Region {
|
|||||||
int y = region.minY + testblock.offsetY - 1;
|
int y = region.minY + testblock.offsetY - 1;
|
||||||
int z = region.minZ + offsetZ + sizeZ / 2;
|
int z = region.minZ + offsetZ + sizeZ / 2;
|
||||||
if(schem == null)
|
if(schem == null)
|
||||||
paste(new File(SECTION_PATH + protectSchematic), x, y, z, rotate);
|
paste(new File(protectSchematic), x, y, z, rotate);
|
||||||
else
|
else
|
||||||
paste(schem.load(), x, y, z, rotate);
|
paste(schem.load(), x, y, z, rotate);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren