package net.codexarchonic.infinity.mixin.iridescence; import net.codexarchonic.infinity.iridescence.Iridescence; import net.minecraft.world.level.block.ConcretePowderBlock; import net.minecraft.world.level.block.state.BlockState; 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; @Mixin(ConcretePowderBlock.class) public class ConcretePowderBlockMixin { /* Iridescence should not convert concrete powder */ @Inject(method= "canSolidify(Lnet/minecraft/world/level/block/state/BlockState;)Z", at = @At("RETURN"), cancellable = true) private static void iridescenceShouldNotConvertConcretePowder(BlockState state, CallbackInfoReturnable cir) { if (Iridescence.isIridescence(state.getFluidState())) cir.setReturnValue(false); } }