From e2731bf834cde5af4b7274bb1f8d240234b5b8a1 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 6 Nov 2010 09:45:36 -0700 Subject: [PATCH] Commands now also use hMod to resolve block names into block IDs. --- src/WorldEditListener.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/WorldEditListener.java b/src/WorldEditListener.java index f6b355c1d..6c4e0c323 100644 --- a/src/WorldEditListener.java +++ b/src/WorldEditListener.java @@ -224,6 +224,12 @@ public class WorldEditListener extends PluginListener { blockType = BlockType.fromID(Integer.parseInt(testID)); } catch (NumberFormatException e) { blockType = BlockType.lookup(testID); + if (blockType == null) { + int t = etc.getDataSource().getItem(testID); + if (t > 0 && t < 256) { + blockType = BlockType.fromID(t); + } + } } if (blockType == null) {