Removed some unnecessary casting.

This commit is contained in:
gmcferrin
2013-01-07 17:08:53 -05:00
parent b8d346d890
commit d69cf09d4e
7 changed files with 14 additions and 14 deletions

View File

@ -398,8 +398,8 @@ public class Combat {
baseXP = 20 * configInstance.getPlayerVersusPlayerXP();
}
}
else if (!mcMMO.placeStore.isSpawnedMob(((Entity) target))) {
if (target instanceof Animals && !mcMMO.placeStore.isSpawnedPet((Entity) target)) {
else if (!mcMMO.placeStore.isSpawnedMob(target)) {
if (target instanceof Animals && !mcMMO.placeStore.isSpawnedPet(target)) {
baseXP = configInstance.getAnimalsXP();
}
else {

View File

@ -175,10 +175,10 @@ public class HashChunkManager implements ChunkManager {
for(LivingEntity entity : world.getLivingEntities()) {
if(mobs.contains(entity.getUniqueId()))
addSpawnedMob((Entity) entity);
addSpawnedMob(entity);
if(pets.contains(entity.getUniqueId()))
addSpawnedPet((Entity) entity);
addSpawnedPet(entity);
}
in.clearSpawnedMobs();