Compare commits
No commits in common. "main" and "createastrafabric-1.0+1.20.1-3" have entirely different histories.
main
...
createastr
|
@ -1,5 +1,7 @@
|
|||
package ru.bitheaven.createastrafabric.mixin;
|
||||
|
||||
import com.simibubi.create.content.equipment.armor.BacktankUtil;
|
||||
import com.simibubi.create.content.equipment.armor.DivingHelmetItem;
|
||||
import earth.terrarium.ad_astra.common.config.AdAstraConfig;
|
||||
import earth.terrarium.ad_astra.common.entity.system.EntityTemperatureSystem;
|
||||
import earth.terrarium.ad_astra.common.item.armor.NetheriteSpaceSuit;
|
||||
|
@ -16,8 +18,8 @@ public abstract class EntityTemperatureSystemMixin {
|
|||
method = "temperatureTick(Lnet/minecraft/world/entity/LivingEntity;Lnet/minecraft/server/level/ServerLevel;)V")
|
||||
private static void redirectTemperatureTick(LivingEntity entity) {
|
||||
boolean createNetherite = true;
|
||||
createNetherite &= entity.getItemBySlot(EquipmentSlot.HEAD).getItem().isFireResistant();
|
||||
createNetherite &= entity.getItemBySlot(EquipmentSlot.CHEST).getItem().isFireResistant();
|
||||
createNetherite &= DivingHelmetItem.getWornItem(entity).getItem().isFireResistant();
|
||||
createNetherite &= BacktankUtil.getAllWithAir(entity).stream().anyMatch(b -> b.getItem().isFireResistant());
|
||||
createNetherite &= entity.getItemBySlot(EquipmentSlot.LEGS).is(ModTags.HEAT_RESISTANT)
|
||||
|| entity.getItemBySlot(EquipmentSlot.LEGS).getItem() instanceof NetheriteSpaceSuit
|
||||
|| entity.getItemBySlot(EquipmentSlot.LEGS).getItem().isFireResistant();
|
||||
|
|
Reference in New Issue