From 467cc4dd147777b1303e275d5fdfd2497f99cf9f Mon Sep 17 00:00:00 2001 From: Wizjany Date: Wed, 12 Oct 2011 17:47:26 -0400 Subject: [PATCH] Fixed infinite loop. Just because it's unused in worldedit doesn't mean you should break it -.- --- src/main/java/com/sk89q/worldedit/WorldEdit.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/WorldEdit.java b/src/main/java/com/sk89q/worldedit/WorldEdit.java index 111db81aa..a31a03d2a 100644 --- a/src/main/java/com/sk89q/worldedit/WorldEdit.java +++ b/src/main/java/com/sk89q/worldedit/WorldEdit.java @@ -436,8 +436,7 @@ public class WorldEdit { return getBlock(player, id, false); } - public Set getBlocks (LocalPlayer player, String list, - boolean allAllowed, boolean allowNoData) + public Set getBlocks (LocalPlayer player, String list, boolean allAllowed, boolean allowNoData) throws DisallowedItemException, UnknownItemException { String[] items = list.split(","); Set blocks = new HashSet(); @@ -449,7 +448,7 @@ public class WorldEdit { public Set getBlocks(LocalPlayer player, String list, boolean allAllowed) throws DisallowedItemException, UnknownItemException { - return getBlocks(player, list, allAllowed); + return getBlocks(player, list, allAllowed, false); } public Set getBlocks(LocalPlayer player, String list)