|
@@ -55,7 +55,7 @@ public class CallOfTheWildEventHandler {
|
|
}
|
|
}
|
|
|
|
|
|
protected void spawnCreature() {
|
|
protected void spawnCreature() {
|
|
- LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type);
|
|
|
|
|
|
+ LivingEntity entity = (LivingEntity) player.getWorld().spawnCreature(player.getLocation(), type);
|
|
entity.setMetadata("mcmmoSummoned", new FixedMetadataValue(mcMMO.p, true));
|
|
entity.setMetadata("mcmmoSummoned", new FixedMetadataValue(mcMMO.p, true));
|
|
|
|
|
|
((Tameable) entity).setOwner(player);
|
|
((Tameable) entity).setOwner(player);
|