mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fix missing mixin target
This commit is contained in:
parent
ea813c3dcb
commit
c1c37881eb
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ import net.minecraft.entity.passive.PufferfishEntity;
|
||||||
abstract class MixinPufferfishEntity extends FishEntity {
|
abstract class MixinPufferfishEntity extends FishEntity {
|
||||||
MixinPufferfishEntity() { super(null, null); }
|
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) {
|
private static void onShouldTarget(LivingEntity entity, CallbackInfoReturnable<Boolean> info) {
|
||||||
Pony.of(entity).filter(pony -> pony.getCompositeRace().includes(Race.SEAPONY)).ifPresent(pony -> {
|
Pony.of(entity).filter(pony -> pony.getCompositeRace().includes(Race.SEAPONY)).ifPresent(pony -> {
|
||||||
info.setReturnValue(false);
|
info.setReturnValue(false);
|
||||||
|
|
Loading…
Reference in a new issue