From f161c69a66a4302fcf9d6d2462836897fe572a6a Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 22 Aug 2018 03:25:42 +1000 Subject: [PATCH] Use parse for search item --- .../main/java/com/sk89q/worldedit/command/GeneralCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java index 86fc4b05a..d1a2c5aab 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java @@ -163,7 +163,7 @@ public class GeneralCommands { boolean blocksOnly = args.hasFlag('b'); boolean itemsOnly = args.hasFlag('i'); - ItemType type = ItemTypes.get(query); + ItemType type = ItemTypes.parse(query); if (type != null) { actor.print(type.getId() + " (" + type.getName() + ")");