TeamMetallurgy / Aquaculture

Aquaculture is an expansion of Minecraft's base fishing system. It allows you to catch a variety of new fish with a brand new series of rods and tools
66 stars 66 forks source link

[1.21] [Neoforge] update to breaking neo changes for damage events #443

Closed ffuentesm closed 2 weeks ago

ffuentesm commented 2 weeks 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))
GirafiStudios commented 2 weeks ago

Thanks for reporting, will look at it right away! :)