|
@@ -183,8 +183,8 @@ public class EntityListener implements Listener {
|
|
entity.setFireTicks(0);
|
|
entity.setFireTicks(0);
|
|
BleedTimer.remove(entity);
|
|
BleedTimer.remove(entity);
|
|
Archery.arrowRetrievalCheck(entity);
|
|
Archery.arrowRetrievalCheck(entity);
|
|
- mcMMO.placeStore.removeSpawnedMob(((Entity) entity));
|
|
|
|
- mcMMO.placeStore.removeSpawnedPet(((Entity) entity));
|
|
|
|
|
|
+ mcMMO.placeStore.removeSpawnedMob(entity);
|
|
|
|
+ mcMMO.placeStore.removeSpawnedPet(entity);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -197,7 +197,7 @@ public class EntityListener implements Listener {
|
|
SpawnReason reason = event.getSpawnReason();
|
|
SpawnReason reason = event.getSpawnReason();
|
|
|
|
|
|
if ((reason.equals(SpawnReason.SPAWNER) || reason.equals(SpawnReason.SPAWNER_EGG)) && !Config.getInstance().getExperienceGainsMobspawnersEnabled()) {
|
|
if ((reason.equals(SpawnReason.SPAWNER) || reason.equals(SpawnReason.SPAWNER_EGG)) && !Config.getInstance().getExperienceGainsMobspawnersEnabled()) {
|
|
- mcMMO.placeStore.addSpawnedMob(((Entity) event.getEntity()));
|
|
|
|
|
|
+ mcMMO.placeStore.addSpawnedMob(event.getEntity());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -398,7 +398,7 @@ public class EntityListener implements Listener {
|
|
|
|
|
|
if(player.hasMetadata("NPC")) return; // Check if this player is a Citizens NPC
|
|
if(player.hasMetadata("NPC")) return; // Check if this player is a Citizens NPC
|
|
|
|
|
|
- if (Permissions.taming(player) && !mcMMO.placeStore.isSpawnedPet((Entity) event.getEntity())) {
|
|
|
|
|
|
+ if (Permissions.taming(player) && !mcMMO.placeStore.isSpawnedPet(event.getEntity())) {
|
|
PlayerProfile profile = Users.getProfile(player);
|
|
PlayerProfile profile = Users.getProfile(player);
|
|
EntityType type = event.getEntityType();
|
|
EntityType type = event.getEntityType();
|
|
int xp = 0;
|
|
int xp = 0;
|