Skip to content

Commit

Permalink
Merge pull request #468 from WaitingIdly/idly-mixin-mistakes
Browse files Browse the repository at this point in the history
Fix some mixins not applying outside of dev-env
  • Loading branch information
ACGaming authored May 14, 2024
2 parents 2a2e786 + d5c27ca commit 73978db
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ dependencies {
compileOnly rfg.deobf('curse.maven:mcjtylib-233105:2745846')
compileOnly rfg.deobf('curse.maven:rftools-224641:2861573')
compileOnly rfg.deobf('curse.maven:rftools-dimensions-240950:2707390')
compileOnly 'curse.maven:actuallyaditions-228404:2844115'
compileOnly rfg.deobf('curse.maven:actuallyaditions-228404:2844115')
compileOnly rfg.deobf('curse.maven:extrautilities-225561:2678374')
compileOnly 'curse.maven:applecore-224472:2969118'
compileOnly 'curse.maven:arcanearchives-311357:3057332'
compileOnly 'curse.maven:bewitchment-285439:3044569'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

// Courtesy of WaitingIdly
@Mixin(value = BlockLaserRelay.class, remap = false)
@Mixin(value = BlockLaserRelay.class)
public abstract class UTBlockLaserRelayMixin
{
@Inject(method = "onBlockActivated", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/player/EntityPlayer;isCreative()Z"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

// Courtesy of WaitingIdly
@Mixin(value = BlockCabbage.class, remap = false)
@Mixin(value = BlockCabbage.class)
public abstract class UTCabbageMixin extends BlockCrops
{
@Override
Expand All @@ -31,7 +31,7 @@ public int damageDropped(IBlockState blockState)
return ItemErebusFood.EnumFoodType.CABBAGE.ordinal();
}

@Inject(method = "getDrops", at = @At("HEAD"), cancellable = true)
@Inject(method = "getDrops", at = @At("HEAD"), remap = false, cancellable = true)
private void utOverrideDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune, CallbackInfoReturnable<List<ItemStack>> cir)
{
if (!UTConfigMods.EREBUS.utCabbageDrop) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import org.spongepowered.asm.mixin.injection.At;

// Courtesy of WaitingIdly
@Mixin(value = BlockPassiveGenerator.class, remap = false)
@Mixin(value = BlockPassiveGenerator.class)
public abstract class UTBreakableCreativeMill extends XUBlockStatic
{
@ModifyExpressionValue(method = "getBlockHardness", at = @At(value = "FIELD", target = "Lcom/rwtema/extrautils2/ExtraUtils2;allowCreativeBlocksToBeBroken:Z"))
@ModifyExpressionValue(method = "getBlockHardness", at = @At(value = "FIELD", target = "Lcom/rwtema/extrautils2/ExtraUtils2;allowCreativeBlocksToBeBroken:Z", remap = false))
private boolean utBreakCreativeMill(boolean original)
{
if (!UTConfigMods.EXTRA_UTILITIES.utFixCreativeMillHarvestability) return original;
Expand Down

0 comments on commit 73978db

Please sign in to comment.