Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/api/java/baritone/api/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ public final class Settings {
* Come to a halt before doing any inventory moves. Intended for anticheat such as 2b2t
*/
public final Setting<Boolean> inventoryMoveOnlyIfStationary = new Setting<>(false);

/**
* Only manage inventory while Baritone is active.
*/
public final Setting<Boolean> inventoryManagementOnlyWhilePathing = new Setting<>(true);

/**
* Disable baritone's auto-tool at runtime, but still assume that another mod will provide auto tool functionality
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/baritone/behavior/InventoryBehavior.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ public void onTick(TickEvent event) {
if (event.getType() == TickEvent.Type.OUT) {
return;
}
if (Baritone.settings().inventoryManagementOnlyWhilePathing.value) {
if (!baritone.getPathingBehavior().isPathing() && !baritone.getPathingControlManager().mostRecentInControl().isPresent()) {
return;
}
}
if (ctx.player().containerMenu != ctx.player().inventoryMenu) {
// we have a crafting table or a chest or something open
return;
Expand Down