From 41c68664d72c6e6ed0f1e6bfda4e8729f338ae59 Mon Sep 17 00:00:00 2001 From: sk89q Date: Wed, 31 Dec 2014 02:30:31 -0800 Subject: [PATCH] Fix failed detection of incorrect blacklist names. --- .../sk89q/worldguard/blacklist/target/TargetMatcherParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldguard/blacklist/target/TargetMatcherParser.java b/src/main/java/com/sk89q/worldguard/blacklist/target/TargetMatcherParser.java index 7e0665ee..db6376e8 100644 --- a/src/main/java/com/sk89q/worldguard/blacklist/target/TargetMatcherParser.java +++ b/src/main/java/com/sk89q/worldguard/blacklist/target/TargetMatcherParser.java @@ -54,7 +54,7 @@ private int parseType(String input) throws TargetMatcherParseException { return Integer.parseInt(input); } catch (NumberFormatException e) { int id = getItemID(input); - if (id != 0) { + if (id > 0) { return id; }