Skip to content

Commit

Permalink
beruh
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRTTV committed Nov 26, 2024
1 parent e534d05 commit 0ea73a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public void onGuiOpened(List<VillagerCommand.Offer> availableOffersList, Village

if (possibleTicksAhead.length > 0) {
int zeroIndex = Math.max(possibleTicksAhead.length - 1, Arrays.binarySearch(possibleTicksAhead, 0));
int bestAdjustment = possibleTicksAhead.length - 1 > zeroIndex && Math.abs(possibleTicksAhead[zeroIndex]) > Math.abs(possibleTicksA head[zeroIndex + 1]) ? possibleTicksAhead[zeroIndex + 1] : possibleTicksAhead[zeroIndex];
int bestAdjustment = possibleTicksAhead.length - 1 > zeroIndex && Math.abs(possibleTicksAhead[zeroIndex]) > Math.abs(possibleTicksAhead[zeroIndex + 1]) ? possibleTicksAhead[zeroIndex + 1] : possibleTicksAhead[zeroIndex];
ClientCommandHelper.addOverlayMessage(Component.translatable("commands.cvillager.failure.detailed", Configs.villagerAdjustmentTicks * 50, Arrays.toString(possibleTicksAhead), bestAdjustment).withStyle(ChatFormatting.RED), 100);
player.playNotifySound(SoundEvents.NOTE_BLOCK_BASS.value(), SoundSource.PLAYERS, 1.0f, 1.0f);
Configs.villagerAdjustmentTicks -= bestAdjustment;
Expand Down

0 comments on commit 0ea73a9

Please sign in to comment.