auto tool v1 lol

This commit is contained in:
leijurv 2018-08-13 07:08:53 -07:00
parent 83cc5ec861
commit e2f8561847
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ public abstract class Movement implements Helper, MovementHelper {
somethingInTheWay = true;
Optional<Rotation> reachable = LookBehaviorUtils.reachable(blockPos);
if (reachable.isPresent()) {
player().inventory.currentItem = new ToolSet().getBestSlot(BlockStateInterface.get(blockPos));
state.setTarget(new MovementState.MovementTarget(reachable.get())).setInput(Input.CLICK_LEFT, true);
return false;
}