From 16b174ae3a5710d2cede58b5f1871bab87d76c1a Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 10 Oct 2013 03:53:17 +0300 Subject: [PATCH] Remove outdated bug fix from If command that was causing other issues. --- .../denizen/scripts/commands/core/IfCommand.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/IfCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/core/IfCommand.java index 915189cb05..45dda7e601 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/IfCommand.java +++ b/src/main/java/net/aufdemrand/denizen/scripts/commands/core/IfCommand.java @@ -182,15 +182,6 @@ else if (newCommand || elseOutcome.size() == 0) { newCommand = false; elseOutcome.put(elseOutcome.size(), new ArrayList()); elseOutcome.get(elseOutcome.lastKey()).add(arg.raw_value); - - // Important! - // - // If we find an "if", act like we entered a set of - // brackets, so we treat the if's commands as arguments - // and don't add them to our current else commands - if (arg.matches("if")) { - bracketsEntered++; - } } // Add new else argument