mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Send invalid message when attempting to spawn unavailable mob
This commit is contained in:
parent
6b6cf41782
commit
24e068b94d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue