mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-30 20:48:19 +01:00
Removed deprecated function in 1.2.5-R5
This commit is contained in:
parent
ca9ce1ba1b
commit
42a1fdf2df
@ -55,8 +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().spawnEntity(player.getLocation(), type);
|
||||||
LivingEntity entity = 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user