Fix missing mixin target

This commit is contained in:
Sollace 2023-12-15 20:45:29 +00:00
parent 0ab31bf3ac
commit e361e7e83d
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -16,7 +16,7 @@ import net.minecraft.entity.passive.PufferfishEntity;
abstract class MixinPufferfishEntity extends FishEntity {
MixinPufferfishEntity() { super(null, null); }
@Inject(method = "method_6591(Lnet/minecraft/class_1309;)Z", at = @At("HEAD"), cancellable = true)
@Inject(method = "method_6591(Lnet/minecraft/entity/LivingEntity;)Z", at = @At("HEAD"), cancellable = true)
private static void onShouldTarget(LivingEntity entity, CallbackInfoReturnable<Boolean> info) {
Pony.of(entity).filter(pony -> pony.getCompositeRace().includes(Race.SEAPONY)).ifPresent(pony -> {
info.setReturnValue(false);