mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Removed some unnecessary casting.
This commit is contained in:
@ -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 {
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user