Merge pull request 'Fix Region.Prototype.SECTION_PATH' (#165) from SectionsPath into master
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
259a4b12cb
@ -105,7 +105,6 @@ public class Region {
|
||||
}
|
||||
|
||||
public static class Prototype{
|
||||
private static final String SECTION_PATH = "/home/minecraft/backbone/server/UserBau/";
|
||||
private static final Map<String, Prototype> prototypes = new HashMap<>();
|
||||
|
||||
private final int sizeX;
|
||||
@ -147,7 +146,7 @@ public class 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 y = region.minY + offsetY;
|
||||
int z = region.minZ + offsetZ + sizeZ/2;
|
||||
@ -166,7 +165,7 @@ public class Region {
|
||||
int y = region.minY + offsetY;
|
||||
int z = region.minZ + offsetZ + sizeZ / 2;
|
||||
if(schem == null)
|
||||
paste(new File(SECTION_PATH + schematic), x, y, z, rotate);
|
||||
paste(new File(schematic), x, y, z, rotate);
|
||||
else
|
||||
paste(schem.load(), x, y, z, rotate);
|
||||
}
|
||||
@ -180,7 +179,7 @@ public class Region {
|
||||
int y = region.minY + testblock.offsetY - 1;
|
||||
int z = region.minZ + offsetZ + sizeZ / 2;
|
||||
if(schem == null)
|
||||
paste(new File(SECTION_PATH + protectSchematic), x, y, z, rotate);
|
||||
paste(new File(protectSchematic), x, y, z, rotate);
|
||||
else
|
||||
paste(schem.load(), x, y, z, rotate);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren