Skip to content

Commit

Permalink
Fix crash (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx authored Oct 27, 2024
1 parent 2a31c75 commit 431462b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
public class MixinEntity {
@Inject(method = "hurtClient", at = @At("HEAD"), cancellable = true)
private void hurtClient(DamageSource damageSource, CallbackInfoReturnable<Boolean> cir) {
if (!((Object) this instanceof LivingEntity)) return;
if ((Object) this instanceof Player) return;
if (EntityEvent.LIVING_HURT.invoker().hurt((LivingEntity) (Object) this, damageSource, 0).isFalse()) {
cir.setReturnValue(false);
Expand Down

0 comments on commit 431462b

Please sign in to comment.