Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Oct 24, 2023
1 parent 1e88ea7 commit 12d61a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ServerGamePacketListenerImplMixin {
public double wilderWild$handleUseItemOn(double original) {
if (this.player != null && this.player.hasEffect(RegisterMobEffects.REACH)) {
int amplifier = this.player.getEffect(RegisterMobEffects.REACH).getAmplifier() + 1;
return original + (amplifier * 0.75D);
return Mth.square(Math.sqrt(original) + amplifier * 0.75D);
}
return original;
}
Expand All @@ -37,7 +37,7 @@ public class ServerGamePacketListenerImplMixin {
public double wilderWild$handleInteract(double original) {
if (this.player != null && this.player.hasEffect(RegisterMobEffects.REACH)) {
int amplifier = this.player.getEffect(RegisterMobEffects.REACH).getAmplifier() + 1;
return original + (amplifier * 0.75D);
return Mth.square(Math.sqrt(original) + amplifier * 0.75D);
}
return original;
}
Expand Down

0 comments on commit 12d61a3

Please sign in to comment.