5eea1cac70
- Fixed Elevator Contraptions misaligning with their contacts after switching target floor mid-travel - Fixed crash when placing a clipboard into replaceable blocks mid-air - Fixed a typo in Smart Observer ponder scene - Fixed funnel flaps being offset to the side when flywheel is disabled - Fixed dyed valve handle using incorrect block particle textures - Fixed copycat blocks able to take on invalid materials through the use of data commands - Copycat blocks no longer retain nbt contents of their contained material's item when loaded from a schematic - Fixed pipe connector attachments missing textures on some orientations - Players can now sneak-pick to receive the copycat block itself, rather than its applied material - Fixed value input screen not closing correctly when 'use' keybind is not on its default setting - Deployers no longer fail to activate bearings and other components with value input slots - Fixed an incompatibility between legacy copper pack and xycraft override - Fixed netherite diving suit not protecting from fire damage when Quark is installed - Attempt to fix lighting issues with elevator contacts - Schematic and Quill no longer displays the full directory path in its confirmation message - Fixed z-fighting on metal bars models
26 lines
838 B
Java
26 lines
838 B
Java
package com.simibubi.create.foundation.mixin;
|
|
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.injection.At;
|
|
import org.spongepowered.asm.mixin.injection.Inject;
|
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|
|
|
import com.simibubi.create.content.equipment.armor.NetheriteDivingHandler;
|
|
|
|
import net.minecraft.world.entity.Entity;
|
|
|
|
@Mixin(value = Entity.class, priority = 900)
|
|
public class EntityMixin {
|
|
|
|
@Inject(method = "fireImmune()Z", at = @At("RETURN"), cancellable = true)
|
|
public void create$onFireImmune(CallbackInfoReturnable<Boolean> cir) {
|
|
if (!cir.getReturnValueZ()) {
|
|
Entity self = (Entity) (Object) this;
|
|
boolean immune = self.getPersistentData().getBoolean(NetheriteDivingHandler.FIRE_IMMUNE_KEY);
|
|
if (immune)
|
|
cir.setReturnValue(immune);
|
|
}
|
|
}
|
|
|
|
}
|