From 79a1d9c241c58d3e6a909a6ea1c3ae845ffa6503 Mon Sep 17 00:00:00 2001 From: AViewFromTheTop <87103914+AViewFromTheTop@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:33:57 -0400 Subject: [PATCH] Fix Beacons --- .../mixin/block/beacon/BeaconBlockEntityMixin.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/frozenblock/wilderwild/mixin/block/beacon/BeaconBlockEntityMixin.java b/src/main/java/net/frozenblock/wilderwild/mixin/block/beacon/BeaconBlockEntityMixin.java index 4fd56c5105..bad76fbe9e 100644 --- a/src/main/java/net/frozenblock/wilderwild/mixin/block/beacon/BeaconBlockEntityMixin.java +++ b/src/main/java/net/frozenblock/wilderwild/mixin/block/beacon/BeaconBlockEntityMixin.java @@ -37,7 +37,15 @@ public final class BeaconBlockEntityMixin { @Final public static MobEffect[][] BEACON_EFFECTS; - @Inject(method = "", at = @At("TAIL")) + @Inject( + method = "", + at = @At( + value = "FIELD", + target = "Lnet/minecraft/world/level/block/entity/BeaconBlockEntity;BEACON_EFFECTS:[[Lnet/minecraft/world/effect/MobEffect;", + shift = At.Shift.AFTER, + ordinal = 0 + ) + ) private static void wilderWild$addReachBoost(CallbackInfo info) { ArrayList effects = new ArrayList<>(List.of(BEACON_EFFECTS[2])); effects.add(RegisterMobEffects.REACH_BOOST);