mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fixed error caused by not specify a mob spawner type when using mob spawner blocks.
This commit is contained in:
parent
8c2169f21c
commit
25ac336c54
@ -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] + "'");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user