1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-04 14:44:44 +02:00

Because Bukkit doesn't set this automatically with setTamed. Go figure. Fixes

This commit is contained in:
GJ
2014-02-28 11:50:14 -05:00
parent a2cac82cba
commit 47db522cc1
2 changed files with 2 additions and 1 deletions
Changelog.txt
src/main/java/com/gmail/nossr50/skills/taming

@ -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: