Skip to content

Commit

Permalink
shrug emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
Poopooracoocoo committed Jan 25, 2024
1 parent 1d654db commit a5bf104
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,28 +230,6 @@ private void isInSwimmingPose(CallbackInfoReturnable<Boolean> cir) {
}
}

@Inject(method = "swingHand(Lnet/minecraft/util/Hand;)V", at = @At("HEAD"), cancellable = true)
private void swingHand(Hand hand, CallbackInfo ci) {
if (BSMTransformations.isLich(this, true)) {
ci.cancel();
if (getWorld().isClient && bsm_lastRoll >= 20) {
bsm_lastRoll = 0;
}
}
}

@Inject(method = "tickMovement", at = @At("TAIL"))
private void tickMovement(CallbackInfo ci) {
if (getWorld().isClient) {
bsm_lastRoll++;
}
}

@Override
public int getLastRollTicks() {
return bsm_lastRoll;
}

@Override
public int getCachedSouls() {
return bsm_cachedSouls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,25 @@ private void ghostify(Args args, LivingEntity entity, float f, float g, MatrixSt
}
}
}

@Inject(method = "swingHand(Lnet/minecraft/util/Hand;)V", at = @At("HEAD"), cancellable = true)
private void swingHand(Hand hand, CallbackInfo ci) {
if (BSMTransformations.isLich(this, true)) {
ci.cancel();
if (getWorld().isClient && bsm_lastRoll >= 20) {
bsm_lastRoll = 0;
}
}
}

@Inject(method = "tickMovement", at = @At("TAIL"))
private void tickMovement(CallbackInfo ci) {
if (getWorld().isClient) {
bsm_lastRoll++;
}
}

@Override
public int getLastRollTicks() {
return bsm_lastRoll;
}

0 comments on commit a5bf104

Please sign in to comment.