mirror of https://github.com/cabaletta/baritone
use ticksBetweenInventoryMoves
This commit is contained in:
parent
42771686c6
commit
0b5d5b8176
|
@ -1404,11 +1404,6 @@ public final class Settings {
|
|||
*/
|
||||
public final Setting<Integer> elytraMinimumDurability = new Setting<>(5);
|
||||
|
||||
/**
|
||||
* The number of ticks between doing inventory clicks
|
||||
*/
|
||||
public final Setting<Integer> elytraInventoryTicks = new Setting<>(5);
|
||||
|
||||
/**
|
||||
* A map of lowercase setting field names to their respective setting
|
||||
*/
|
||||
|
|
|
@ -119,7 +119,7 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
|
|||
|
||||
// auto swap
|
||||
private int tickCounter;
|
||||
private int tickLastTransaction = -Baritone.settings().elytraInventoryTicks.value;
|
||||
private int tickLastTransaction = -Baritone.settings().ticksBetweenInventoryMoves.value;
|
||||
private final Queue<Runnable> transactionQueue = new LinkedList<>();
|
||||
|
||||
private ElytraBehavior(Baritone baritone) {
|
||||
|
@ -1258,7 +1258,7 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
|
|||
}
|
||||
|
||||
private void tickInventoryTransactions() {
|
||||
if (tickCounter - tickLastTransaction > Baritone.settings().elytraInventoryTicks.value) {
|
||||
if (tickCounter - tickLastTransaction > Baritone.settings().ticksBetweenInventoryMoves.value) {
|
||||
Runnable r = transactionQueue.poll();
|
||||
if (r != null) {
|
||||
r.run();
|
||||
|
|
Loading…
Reference in New Issue