mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-26 10:01:49 +01:00
Send invalid message when attempting to spawn unavailable mob
This commit is contained in:
parent
6b6cf41782
commit
24e068b94d
@ -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"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user