Disable their natural sneakyness when raging

This commit is contained in:
Sollace 2023-10-09 22:10:18 +01:00
parent 8b2c498a26
commit 6e3bc75619
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -47,7 +47,7 @@ abstract class MixinEntity implements EntityDuck {
@Inject(method = "isSneaky", at = @At("HEAD"), cancellable = true)
private void onIsSneaky(CallbackInfoReturnable<Boolean> info) {
if (EquinePredicates.PLAYER_KIRIN.test((Entity)(Object)this)) {
if (EquinePredicates.PLAYER_KIRIN.test((Entity)(Object)this) && !EquinePredicates.RAGING.test((Entity)(Object)this)) {
info.setReturnValue(true);
}
}