Fix the way we make the robit be immune to radiation so that the poor little guy doesn't blink red as if taking damage
@@ -388,10 +388,15 @@ public class EntityRobit extends CreatureEntity implements IMekanismInventory, I
progress = nbtTags.getInt(NBTConstants.PROGRESS);
}
+ @Override
+ public boolean isInvulnerableTo(@Nonnull DamageSource source) {
+ return source == MekanismDamageSource.RADIATION || super.isInvulnerableTo(source);
+ }
+
@Override
protected void damageEntity(@Nonnull DamageSource damageSource, float amount) {
amount = ForgeHooks.onLivingHurt(this, damageSource, amount);
- if (amount <= 0 || damageSource == MekanismDamageSource.RADIATION) {
+ if (amount <= 0) {
return;
}
amount = applyArmorCalculations(damageSource, amount);
