From 47db522cc133e877f917497e41cee29341494821 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 28 Feb 2014 11:50:14 -0500 Subject: [PATCH] Because Bukkit doesn't set this automatically with setTamed. Go figure. Fixes #1888 --- Changelog.txt | 1 + .../java/com/gmail/nossr50/skills/taming/TamingManager.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index f03e7b4d6..e51c6937b 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -21,6 +21,7 @@ Version 1.4.08-dev + Added new experience bonus perk 'mcmmo.perks.xp.customboost.' multiplies incoming XP by the boost amount defined in the experience config + Added Ender Dragon, Wither, and Witch to combat experience multipliers - they do not give XP by default + Added support for multiple mod config files, naming can be done as either armor..yml or .armor.yml + = Fixed bug with Call of The Wild entities despawning = Fixed bug with updating (very) old user data. = Fixed bug with checking maximum durability of mod items. = Fixed exploit involving Call of The Wild. diff --git a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java index a7c798c7d..db1fe031a 100644 --- a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java @@ -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: