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
69 stars 73 forks source link

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

Closed ffuentesm closed 4 months ago

ffuentesm commented 4 months 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 4 months ago

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