mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 19:54:44 +02:00
Adding the ability to track spawned mobs when chunks unload.
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user