From 25ac336c54e6a5e74f7f48b0b9ff689b9bd42d42 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 25 Dec 2010 20:49:28 -0800 Subject: [PATCH] Fixed error caused by not specify a mob spawner type when using mob spawner blocks. --- src/WorldEditListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WorldEditListener.java b/src/WorldEditListener.java index b1f3bdad0..d5b364806 100755 --- a/src/WorldEditListener.java +++ b/src/WorldEditListener.java @@ -260,7 +260,7 @@ public class WorldEditListener extends PluginListener { text[3] = args0.length > 4 ? args0[4] : ""; return new SignBlock(blockType.getID(), data, text); } else if (blockType == BlockType.MOB_SPAWNER) { - if (args0.length > 0) { + if (args0.length > 1) { if (!ServerInterface.isValidMobType(args0[1])) { throw new InvalidItemException(arg, "Unknown mob type '" + args0[1] + "'"); }