From 5b4ac1233acf9c9d177a005df72af82883e113c8 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 12 Mar 2011 17:06:36 -0800 Subject: [PATCH] Added McRegion support to /chunkinfo. --- src/com/sk89q/worldedit/commands/ChunkCommands.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/sk89q/worldedit/commands/ChunkCommands.java b/src/com/sk89q/worldedit/commands/ChunkCommands.java index 81753b279..cbe7f1312 100644 --- a/src/com/sk89q/worldedit/commands/ChunkCommands.java +++ b/src/com/sk89q/worldedit/commands/ChunkCommands.java @@ -26,6 +26,7 @@ import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.minecraft.util.commands.CommandPermissions; import com.sk89q.worldedit.*; import com.sk89q.worldedit.data.LegacyChunkStore; +import com.sk89q.worldedit.data.McRegionChunkStore; import com.sk89q.worldedit.regions.Region; /** @@ -56,7 +57,9 @@ public class ChunkCommands { + "." + Integer.toString(chunkZ, 36) + ".dat"; player.print("Chunk: " + chunkX + ", " + chunkZ); - player.print(folder1 + "/" + folder2 + "/" + filename); + player.print("Old format: " + folder1 + "/" + folder2 + "/" + filename); + player.print("McRegion: region/" + McRegionChunkStore.getFilename( + new Vector2D(chunkX, chunkZ))); } @Command(