Skip to content

Commit

Permalink
24w44a
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Oct 31, 2024
1 parent 283a95b commit 6b7daa1
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@
@Mixin(DispenserBlock.class)
public abstract class DispenserBlockMixin
{
@Inject(method = "getBehaviorForItem", at = @At("HEAD"), cancellable = true)
@Inject(
//#if MC >= 12104
//$$ method = "getBehaviorForItem(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/block/dispenser/DispenserBehavior;",
//#else
method = "getBehaviorForItem(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/block/dispenser/DispenserBehavior;",
//#endif
at = @At("HEAD"),
cancellable = true
)
private void registerNewBehaviors_dispensersFireDragonBreath(CallbackInfoReturnable<DispenserBehavior> cir, @Local(argsOnly = true) ItemStack stack)
{
if (CarpetTISAdditionSettings.dispensersFireDragonBreath)
Expand Down

0 comments on commit 6b7daa1

Please sign in to comment.