3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

Fixed error caused by not specifying a mob spawner type.

Dieser Commit ist enthalten in:
sk89q 2010-11-26 21:29:27 -08:00
Ursprung 255bea4416
Commit 9ce9ed3657

Datei anzeigen

@ -257,10 +257,14 @@ public class WorldEditListener extends PluginListener {
text[3] = args0.length > 4 ? args0[4] : ""; text[3] = args0.length > 4 ? args0[4] : "";
return new SignBlock(blockType.getID(), data, text); return new SignBlock(blockType.getID(), data, text);
} else if (blockType == BlockType.MOB_SPAWNER) { } else if (blockType == BlockType.MOB_SPAWNER) {
if (args0.length > 0) {
if (!ServerInterface.isValidMobType(args0[1])) { if (!ServerInterface.isValidMobType(args0[1])) {
throw new InvalidItemException(arg, "Unknown mob type '" + args0[1] + "'"); throw new InvalidItemException(arg, "Unknown mob type '" + args0[1] + "'");
} }
return new MobSpawnerBlock(data, args0[1]); return new MobSpawnerBlock(data, args0[1]);
} else {
return new MobSpawnerBlock(data, "Pig");
}
} }
return new BaseBlock(blockType.getID(), data); return new BaseBlock(blockType.getID(), data);