mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +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 {
|
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"));
|
throw new Exception(tl("invalidMob"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue