Adding the ability to track spawned mobs when chunks unload.

This commit is contained in:
Glitchfinder
2012-12-30 19:51:26 -08:00
parent 28b092a4e3
commit 905e92fa4d
10 changed files with 313 additions and 13 deletions

View File

@ -68,7 +68,7 @@ public class CallOfTheWildEventHandler {
return;
LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type);
entity.setMetadata("mcmmoSummoned", new FixedMetadataValue(mcMMO.p, true));
mcMMO.p.placeStore.addSpawnedPet((Entity) entity);
((Tameable) entity).setOwner(player);