Added /thaw.

This commit is contained in:
sk89q
2011-01-08 11:40:18 -08:00
parent 1767597672
commit d55fa96e3e
2 changed files with 59 additions and 0 deletions

View File

@ -155,6 +155,7 @@ public class WorldEditController {
commands.put("/forestgen", "<Size> <Density> - Make Notch tree forest");
commands.put("/pinegen", "<Size> <Density> - Make an ugly pine tree forest");
commands.put("/snow", "<Radius> - Simulate snow cover");
commands.put("/thaw", "<Radius> - Unthaw/remove snow");
commands.put("/pumpkins", "<Size> - Make a pumpkin forest");
commands.put("/unstuck", "Go up to the first free spot");
commands.put("/ascend", "Go up one level");
@ -1219,6 +1220,16 @@ public class WorldEditController {
return true;
// Thaw
} else if (split[0].equalsIgnoreCase("/thaw")) {
checkArgs(split, 0, 1, split[0]);
int size = split.length > 1 ? Math.max(1, Integer.parseInt(split[1])) : 10;
int affected = editSession.thaw(player.getBlockIn(), size);
player.print(affected + " surfaces thawed.");
return true;
// Make pumpkin patches
} else if (split[0].equalsIgnoreCase("/pumpkins")) {
checkArgs(split, 0, 1, split[0]);