Use parse for search item

This commit is contained in:
Jesse Boyd 2018-08-22 03:25:42 +10:00
parent c55353e5b1
commit f161c69a66
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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() + ")");