From ed979345d433eda13e085c2f059c19d000446291 Mon Sep 17 00:00:00 2001 From: RTTV Date: Thu, 21 Nov 2024 14:40:01 -0500 Subject: [PATCH] made it auto-readjust --- .../clientcommands/mixin/rngevents/MerchantScreenMixin.java | 1 + src/main/resources/assets/clientcommands/lang/en_us.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/earthcomputer/clientcommands/mixin/rngevents/MerchantScreenMixin.java b/src/main/java/net/earthcomputer/clientcommands/mixin/rngevents/MerchantScreenMixin.java index 77720c47..5c29b55d 100644 --- a/src/main/java/net/earthcomputer/clientcommands/mixin/rngevents/MerchantScreenMixin.java +++ b/src/main/java/net/earthcomputer/clientcommands/mixin/rngevents/MerchantScreenMixin.java @@ -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; } } diff --git a/src/main/resources/assets/clientcommands/lang/en_us.json b/src/main/resources/assets/clientcommands/lang/en_us.json index 8d6ca2d0..ff72e433 100644 --- a/src/main/resources/assets/clientcommands/lang/en_us.json +++ b/src/main/resources/assets/clientcommands/lang/en_us.json @@ -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",