mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixed bug where wolves spawned with Call of the Wild only had 8 health
This commit is contained in:
parent
6fffe10c32
commit
6c6fb117ea
@ -9,6 +9,7 @@ Key:
|
|||||||
|
|
||||||
Version 1.3.05-dev
|
Version 1.3.05-dev
|
||||||
= Fixed bug with repairing wooden tools
|
= Fixed bug with repairing wooden tools
|
||||||
|
= Fixed bug where spawned wolves only had 8 health.
|
||||||
! Changed Tree Feller to account for ability durability loss but not leaves.
|
! Changed Tree Feller to account for ability durability loss but not leaves.
|
||||||
|
|
||||||
Version 1.3.04
|
Version 1.3.04
|
||||||
|
@ -244,6 +244,7 @@ public class Taming {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LivingEntity entity = player.getWorld().spawnCreature(player.getLocation(), type);
|
LivingEntity entity = player.getWorld().spawnCreature(player.getLocation(), type);
|
||||||
entity.setMetadata("mcmmoSummoned", new FixedMetadataValue(plugin, true));
|
entity.setMetadata("mcmmoSummoned", new FixedMetadataValue(plugin, true));
|
||||||
((Tameable) entity).setOwner(player);
|
((Tameable) entity).setOwner(player);
|
||||||
@ -252,6 +253,10 @@ public class Taming {
|
|||||||
((Ocelot) entity).setCatType(Ocelot.Type.getType(1 + random.nextInt(3)));
|
((Ocelot) entity).setCatType(Ocelot.Type.getType(1 + random.nextInt(3)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (entity.getType().equals(EntityType.WOLF)) {
|
||||||
|
entity.setHealth(entity.getMaxHealth());
|
||||||
|
}
|
||||||
|
|
||||||
player.setItemInHand(new ItemStack(summonItem, item.getAmount() - summonAmount));
|
player.setItemInHand(new ItemStack(summonItem, item.getAmount() - summonAmount));
|
||||||
player.sendMessage(mcLocale.getString("m.TamingSummon"));
|
player.sendMessage(mcLocale.getString("m.TamingSummon"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user