Skip to content

Commit

Permalink
Fixes:
Browse files Browse the repository at this point in the history
0. Fix altoclef crashing when entering the @get command.
1. Fix Hero task doesn't do anything.
  • Loading branch information
MarvionKirito committed Nov 6, 2022
1 parent e03c02f commit ce525c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/adris/altoclef/control/SlotHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public boolean forceDeequipHitTool() {

public void forceDeequipRightClickableItem() {
forceDeequip(stack -> {
Item item = stack.getItem();
Item item = stack.getItem();
return item instanceof BucketItem // water,lava,milk,fishes
|| item instanceof EnderEyeItem
|| item == Items.BOW
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public class InteractWithBlockTask extends Task {
};
private Task _unstuckTask = null;
private ClickResponse _cachedClickStatus = ClickResponse.CANT_REACH;

public InteractWithBlockTask(ItemTarget toUse, Direction direction, BlockPos target, Input interactInput, boolean walkInto, Vec3i interactOffset, boolean shiftClick) {
_toUse = toUse;
_direction = direction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class TimeoutWanderTask extends Task implements ITaskRequiresGrounded {
private Task _unstuckTask = null;
private int _failCounter;
private double _wanderDistanceExtension;

public TimeoutWanderTask(float distanceToWander, boolean increaseRange) {
_distanceToWander = distanceToWander;
_increaseRange = increaseRange;
Expand Down

0 comments on commit ce525c7

Please sign in to comment.