From 99fae3e716ad48553504506b269b00f4d2f5ab80 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sun, 29 Dec 2013 13:28:22 -0500 Subject: [PATCH] Revert /up and /ceil command to use glass block by default. Flight can be done via -f flag now. --- .../sk89q/worldedit/commands/NavigationCommands.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/commands/NavigationCommands.java b/src/main/java/com/sk89q/worldedit/commands/NavigationCommands.java index fbfd4ad2f..aa48ca700 100644 --- a/src/main/java/com/sk89q/worldedit/commands/NavigationCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/NavigationCommands.java @@ -118,7 +118,7 @@ public class NavigationCommands { aliases = { "ceil" }, usage = "[clearance]", desc = "Go to the celing", - flags = "g", + flags = "f", min = 0, max = 1 ) @@ -130,8 +130,8 @@ public class NavigationCommands { int clearence = args.argsLength() > 0 ? Math.max(0, args.getInteger(0)) : 0; - final boolean alwaysGlass = args.hasFlag('g'); - if (player.ascendToCeiling(clearence, alwaysGlass)) { + final boolean useFlight = args.hasFlag('f'); + if (player.ascendToCeiling(clearence, !useFlight)) { player.print("Whoosh!"); } else { player.printError("No free spot above you found."); @@ -179,7 +179,7 @@ public class NavigationCommands { aliases = { "up" }, usage = "", desc = "Go upwards some distance", - flags = "g", + flags = "f", min = 1, max = 1 ) @@ -190,8 +190,8 @@ public class NavigationCommands { int distance = args.getInteger(0); - final boolean alwaysGlass = args.hasFlag('g'); - if (player.ascendUpwards(distance, alwaysGlass)) { + final boolean useFlight = args.hasFlag('f'); + if (player.ascendUpwards(distance, !useFlight)) { player.print("Whoosh!"); } else { player.printError("You would hit something above you.");