Send invalid message when attempting to spawn unavailable mob

This commit is contained in:
vemacs 2016-03-05 09:03:32 -07:00
parent 6b6cf41782
commit 24e068b94d

View File

@ -153,7 +153,7 @@ public class SpawnMob {
}
private static void checkSpawnable(IEssentials ess, CommandSource sender, Mob mob) throws Exception {
if (mob == null) {
if (mob == null || mob.getType() == null) {
throw new Exception(tl("invalidMob"));
}