Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarloscp52 committed Feb 20, 2023
1 parent 17890e9 commit c9fe407
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@Mixin(LivingEntity.class)
public class LivingEntityMixin {

@Inject(method = "damage(Lnet/minecraft/entity/damage/DamageSource;F)Z", at = @At("RETURN"), cancellable = true)
@Inject(method = "damage(Lnet/minecraft/entity/damage/DamageSource;F)Z", at = @At("RETURN"))
private void damage(DamageSource source, float amount, CallbackInfoReturnable<Boolean> cir) {
var _this = (LivingEntity) (Object) this;
var attacker = source.getAttacker();
Expand All @@ -25,7 +25,7 @@ private void damage(DamageSource source, float amount, CallbackInfoReturnable<Bo
_this.kill();
}

if (Variables.shouldLounchEntity > 0) {
if (Variables.shouldLaunchEntity > 0) {
var direction = attacker.getRotationVector().normalize().multiply(4).add(0, 1.75d, 0);
_this.addVelocity(direction);
}
Expand Down

0 comments on commit c9fe407

Please sign in to comment.