Skip to content

Commit 5895068

Browse files
authored
Merge pull request #295 from mqtze/fix/pestsexchange
Fix/pestsexchange
2 parents f20017b + b9d6920 commit 5895068

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

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.9.2
7+
version=2.9.3
88
shouldRelease=true

src/main/java/com/jelly/farmhelperv2/config/FarmHelperConfig.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,13 @@ public static void triggerManuallyPestsDestroyer() {
15021502
size = 2
15031503
)
15041504
public static boolean autoPestExchangeTravelMethodInfo;
1505+
@DualOption(
1506+
name = "Teleport to", category = AUTO_PEST_EXCHANGE, subcategory = "Auto Pest Exchange",
1507+
description = "The plot to teleport to, to get to the pest exchange desk",
1508+
left = "Barn",
1509+
right = "Plot 2"
1510+
)
1511+
public static boolean autoPestExchangeTpDestiination = false;
15051512
@Slider(
15061513
name = "Trigger before contest starts (in minutes)", category = AUTO_PEST_EXCHANGE, subcategory = "Auto Pest Exchange",
15071514
description = "The time before the contest starts to trigger the auto pest exchange",

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ public void onTickExecutionNew(TickEvent.ClientTickEvent event) {
257257
}
258258
positionBeforeTp = mc.thePlayer.getPosition();
259259
newState = NewState.WAIT_FOR_TP;
260-
mc.thePlayer.sendChatMessage("/tptoplot barn");
260+
if (!FarmHelperConfig.autoPestExchangeTpDestiination) {
261+
mc.thePlayer.sendChatMessage("/tptoplot barn");
262+
} else {
263+
mc.thePlayer.sendChatMessage("/tptoplot 2");
264+
}
261265
delayClock.schedule((long) (600 + Math.random() * 500));
262266
break;
263267
case WAIT_FOR_TP:

0 commit comments

Comments
 (0)