Fixed regenallroads creating new chunks

This commit is contained in:
boy0001 2015-02-14 15:37:57 +11:00
parent 632d63a640
commit 577c9dabf3
2 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ import com.intellectualcrafters.plot.util.SendChunk;
} }
for (Chunk chunk : world.getLoadedChunks()) { for (Chunk chunk : world.getLoadedChunks()) {
ChunkLoc loc = new ChunkLoc(chunk.getX() >> 4, chunk.getZ() >> 4); ChunkLoc loc = new ChunkLoc(chunk.getX() >> 5, chunk.getZ() >> 5);
if (!chunks.contains(loc)) { if (!chunks.contains(loc)) {
chunks.add(loc); chunks.add(loc);
} }

View File

@ -192,7 +192,7 @@ public class SchematicHandler {
return getSchematic(tag, file); return getSchematic(tag, file);
} catch (final Exception e) { } catch (final Exception e) {
e.printStackTrace(); PlotMain.sendConsoleSenderMessage(file.toString() + " is not in GZIP format");
return null; return null;
} }
} }