mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Because Bukkit doesn't set this automatically with setTamed. Go figure. Fixes #1888
This commit is contained in:
@ -225,9 +225,9 @@ public class TamingManager extends SkillManager {
|
||||
|
||||
for (int i = 0; i < amount; i++) {
|
||||
LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type);
|
||||
|
||||
entity.setMetadata(mcMMO.entityMetadataKey, mcMMO.metadataValue);
|
||||
((Tameable) entity).setOwner(player);
|
||||
entity.setRemoveWhenFarAway(false);
|
||||
|
||||
switch (type) {
|
||||
case OCELOT:
|
||||
|
Reference in New Issue
Block a user