Skip to content

Commit

Permalink
made it auto-readjust
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRTTV committed Nov 21, 2024
1 parent ee61233 commit ed97934
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ private void onRender(CallbackInfo ci) {
if (currentOfferTickIndex.isPresent()) {
// we negate the currentOfferTickIndex as adjustment because in the case that our actual offers are found
ClientCommandHelper.addOverlayMessage(Component.translatable("commands.cvillager.failure.detailed", Configs.villagerAdjustment * 50, -currentOfferTickIndex.getAsInt()).withStyle(ChatFormatting.RED), 100);
Configs.villagerAdjustment -= -currentOfferTickIndex.getAsInt();
break a;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/clientcommands/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
"commands.cvillager.crack.failed": "Failed to crack villager seed (found %d seeds), re-cracking...",
"commands.cvillager.crack.success": "Villager RNG cracked: %d",
"commands.cvillager.failure": "Got the incorrect trade with correction of %dms",
"commands.cvillager.failure.detailed": "Got the incorrect trade with correction of %dms (was %d ticks ahead)",
"commands.cvillager.failure.detailed": "Got the incorrect trade with correction of %dms (was %d ticks ahead); re-adjusting",
"commands.cvillager.goalAdded": "Added goal successfully.",
"commands.cvillager.help.day": "Help: Villager RNG manipulation is likely to break if it's not night-time",
"commands.cvillager.help.noClock": "Help: Villager RNG manipulation requires a 20 Hz clock",
Expand Down

0 comments on commit ed97934

Please sign in to comment.