diff --git a/NeoForge/src/main/java/com/autovw/advancednetherite/common/EventHandler.java b/NeoForge/src/main/java/com/autovw/advancednetherite/common/EventHandler.java index a91f758f..eda0ae1f 100644 --- a/NeoForge/src/main/java/com/autovw/advancednetherite/common/EventHandler.java +++ b/NeoForge/src/main/java/com/autovw/advancednetherite/common/EventHandler.java @@ -48,7 +48,7 @@ public static void onEnderManAngerEvent(final EnderManAngerEvent event) @SubscribeEvent public static void onLivingChangeTargetEvent(final LivingChangeTargetEvent event) { - LivingEntity target = event.getOriginalTarget(); // Gets the target (player) + LivingEntity target = event.getOriginalAboutToBeSetTarget(); // Gets the target (player) LivingEntity attacker = event.getEntity(); // Gets the attacker if (target == null) @@ -65,7 +65,7 @@ public static void onLivingChangeTargetEvent(final LivingChangeTargetEvent event Item item = stack.getItem(); if ((item instanceof AdvancedArmorItem && ((AdvancedArmorItem) item).pacifiesPhantoms()) || (item instanceof IAdvancedHooks && ((IAdvancedHooks) item).pacifyPhantoms(stack))) { - event.setNewTarget(null); // Set target to null to allow the attacker to pick a new target + event.setNewAboutToBeSetTarget(null); // Set target to null to allow the attacker to pick a new target } } } diff --git a/NeoForge/src/main/resources/META-INF/neoforge.mods.toml b/NeoForge/src/main/resources/META-INF/neoforge.mods.toml index 47fe9163..3588562a 100644 --- a/NeoForge/src/main/resources/META-INF/neoforge.mods.toml +++ b/NeoForge/src/main/resources/META-INF/neoforge.mods.toml @@ -23,7 +23,7 @@ Visit the GitHub Wiki for more information on everything this mod adds. # 'required' requires the mod to exist, 'optional' does not # 'incompatible' will prevent the game from loading when the mod exists, and 'discouraged' will show a warning type="required" - versionRange="[21.0,)" + versionRange="[21.0.74,)" ordering="NONE" side="BOTH" [[dependencies.advancednetherite]]