architectury / architectury-api

An intermediary api aimed at easing development of multiplatform mods.
https://discord.architectury.dev/
GNU Lesser General Public License v3.0
306 stars 55 forks source link

1.21 neoforge mod fails to load #522

Open Jayv6 opened 1 week ago

Jayv6 commented 1 week ago

versions Neoforge 1.21 (21.0.32 beta) Architectury 13.0.1 https://mclo.gs/xCRzSnS (log) I cannot get the game to load with just this mod

ffuentesm commented 1 week ago

image

New Neoforge 21.0.31 made the following changes to damage events:

import net.neoforged.neoforge.event.entity.living.LivingHurtEvent; 
import net.neoforged.neoforge.event.entity.living.LivingIncomingDamageEvent; 
public static void dodge(LivingHurtEvent event) { 
public static void dodge(LivingIncomingDamageEvent event) {
public static void livingDamageEvent(LivingDamageEvent event) {
        if (!(event.getSource().getEntity() instanceof Player player)) 
public static void livingDamageEvent(LivingIncomingDamageEvent event) {
        if (!(event.getEntity() instanceof Player player))
CsillaAria commented 1 week ago

Having the same problem.

Logan9312 commented 1 week ago

Same problem here. It happened after I had to update my neoforge past 21.0.31-beta I believe

Steinzu commented 1 week ago

Same here, the error only happens on neoforge 21.0.31-beta and forward

ElTega commented 1 week ago

Having exactly the same problem!

ashton727 commented 1 week ago

Can confirm this issue on my machine.

Fidulus commented 1 week ago

I´m on version 21.0.37 and architectury crashes the game, without it ofc none of the dependent mods are usable. my crashlog looks something like this:

-- Head -- Thread: Render thread Stacktrace: at TRANSFORMER/architectury@13.0.2/dev.architectury.platform.hooks.EventBusesHooks.lambda$whenAvailable$0(EventBusesHooks.java:34) ~[architectury-13.0.2-neoforge.jar%23330!/:?] {re:classloading} at java.base/java.util.Optional.orElseThrow(Optional.java:403) ~[?:?] {re:mixin} at TRANSFORMER/architectury@13.0.2/dev.architectury.platform.hooks.EventBusesHooks.whenAvailable(EventBusesHooks.java:34)