mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Using this code until Bukkit fixes spawnCreature()
This commit is contained in:
parent
0b2a3fcf7f
commit
aed160b5fc
1 changed files with 1 additions and 2 deletions
|
@ -76,8 +76,7 @@ public enum Mob
|
|||
|
||||
public LivingEntity spawn(final Player player, final Server server, final Location loc) throws MobException
|
||||
{
|
||||
|
||||
final LivingEntity entity = player.getWorld().spawnCreature(loc, this.bukkitType);
|
||||
final LivingEntity entity = player.getWorld().spawn(loc, (Class<? extends LivingEntity>)this.bukkitType.getEntityClass());
|
||||
if (entity == null)
|
||||
{
|
||||
logger.log(Level.WARNING, _("unableToSpawnMob"));
|
||||
|
|
Loading…
Reference in a new issue