mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +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
|
public LivingEntity spawn(final Player player, final Server server, final Location loc) throws MobException
|
||||||
{
|
{
|
||||||
|
final LivingEntity entity = player.getWorld().spawn(loc, (Class<? extends LivingEntity>)this.bukkitType.getEntityClass());
|
||||||
final LivingEntity entity = player.getWorld().spawnCreature(loc, this.bukkitType);
|
|
||||||
if (entity == null)
|
if (entity == null)
|
||||||
{
|
{
|
||||||
logger.log(Level.WARNING, _("unableToSpawnMob"));
|
logger.log(Level.WARNING, _("unableToSpawnMob"));
|
||||||
|
|
Loading…
Reference in a new issue