Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 746d757

Browse files
committed
Update release
AutoRepellent: = Fixed rare crash when buying a repellent and everything from the pre-releases
1 parent 1250211 commit 746d757

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2
44
mcVersion=1.8.9
55
modid=farmhelperv2
66
modName=FarmHelper
7-
version=2.8.8-pre4
7+
version=2.8.8
88
shouldRelease=true

src/main/java/com/jelly/farmhelperv2/feature/impl/AutoRepellent.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,12 @@ public void onDrawGui(DrawScreenAfterEvent event) {
389389
delay.schedule(FarmHelperConfig.getRandomGUIMacroDelay());
390390
case CONFIRM_BUY:
391391
if (guiName.equals("Confirm")) {
392+
Slot confirmSlot = InventoryUtils.getSlotOfItemInContainer("Confirm");
393+
if (confirmSlot == null) {
394+
break;
395+
}
392396
state = State.CLOSE_GUI;
393-
InventoryUtils.clickContainerSlot(InventoryUtils.getSlotOfItemInContainer("Confirm").slotNumber, InventoryUtils.ClickType.LEFT, InventoryUtils.ClickMode.PICKUP);
397+
InventoryUtils.clickContainerSlot(confirmSlot.slotNumber, InventoryUtils.ClickType.LEFT, InventoryUtils.ClickMode.PICKUP);
394398
delay.schedule(FarmHelperConfig.getRandomGUIMacroDelay());
395399
break;
396400
}

0 commit comments

Comments
 (0)