Skip to content

Commit

Permalink
only target backtank predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Feb 27, 2024
1 parent 86a86a7 commit 805ed69
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.Slice;

@Mixin(NetheriteDivingHandler.class)
public class NetheriteDivingHandlerMixin {
Expand All @@ -17,6 +18,13 @@ public class NetheriteDivingHandlerMixin {
at = @At(
value = "INVOKE",
target = "Lcom/tterrag/registrate/util/entry/ItemEntry;isIn(Lnet/minecraft/world/item/ItemStack;)Z"
),
slice = @Slice(
from = @At(
value = "FIELD",
target = "Lnet/minecraft/world/entity/EquipmentSlot;CHEST:Lnet/minecraft/world/entity/EquipmentSlot;"
),
to = @At("TAIL")
)
)
private static boolean modifyNetheritePredicate(ItemEntry instance, ItemStack stack) {
Expand Down

0 comments on commit 805ed69

Please sign in to comment.