From d18a20dafa3d8c2d3a3dd4bd40690c7d7db78072 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Thu, 27 Mar 2014 08:20:42 +0100 Subject: [PATCH] Clarified some comments. --- src/main/java/com/sk89q/worldedit/commands/BrushCommands.java | 2 +- .../java/com/sk89q/worldedit/commands/UtilityCommands.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/commands/BrushCommands.java b/src/main/java/com/sk89q/worldedit/commands/BrushCommands.java index ce3cde8e3..cffe67220 100644 --- a/src/main/java/com/sk89q/worldedit/commands/BrushCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/BrushCommands.java @@ -275,7 +275,7 @@ public class BrushCommands { if (args.argsLength() == 2) { String flagString = args.getString(1); // straight from the command, using contains instead of hasflag - flags.or(KillFlags.FRIENDLY , flagString.contains("f")); + flags.or(KillFlags.FRIENDLY , flagString.contains("f")); // No permission check here. Flags will instead be filtered by the subsequent calls. flags.or(KillFlags.PETS , flagString.contains("p"), "worldedit.butcher.pets"); flags.or(KillFlags.NPCS , flagString.contains("n"), "worldedit.butcher.npcs"); flags.or(KillFlags.GOLEMS , flagString.contains("g"), "worldedit.butcher.golems"); diff --git a/src/main/java/com/sk89q/worldedit/commands/UtilityCommands.java b/src/main/java/com/sk89q/worldedit/commands/UtilityCommands.java index d9f3497a3..12b88fbf6 100644 --- a/src/main/java/com/sk89q/worldedit/commands/UtilityCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/UtilityCommands.java @@ -384,14 +384,14 @@ public class UtilityCommands { } FlagContainer flags = new FlagContainer(player); - flags.or(KillFlags.FRIENDLY , args.hasFlag('f')); + flags.or(KillFlags.FRIENDLY , args.hasFlag('f')); // No permission check here. Flags will instead be filtered by the subsequent calls. flags.or(KillFlags.PETS , args.hasFlag('p'), "worldedit.butcher.pets"); flags.or(KillFlags.NPCS , args.hasFlag('n'), "worldedit.butcher.npcs"); flags.or(KillFlags.GOLEMS , args.hasFlag('g'), "worldedit.butcher.golems"); flags.or(KillFlags.ANIMALS , args.hasFlag('a'), "worldedit.butcher.animals"); flags.or(KillFlags.AMBIENT , args.hasFlag('b'), "worldedit.butcher.ambient"); flags.or(KillFlags.WITH_LIGHTNING, args.hasFlag('l'), "worldedit.butcher.lightning"); - // If you add flags here, please add them to com.sk89q.worldedit.tools.brushes.ButcherBrush as well + // If you add flags here, please add them to com.sk89q.worldedit.commands.BrushCommands.butcherBrush() as well int killed; if (player.isPlayer()) {