diff --git a/src/main/java/baritone/bot/pathing/movement/MovementHelper.java b/src/main/java/baritone/bot/pathing/movement/MovementHelper.java index 7834c13d..4ddfd415 100644 --- a/src/main/java/baritone/bot/pathing/movement/MovementHelper.java +++ b/src/main/java/baritone/bot/pathing/movement/MovementHelper.java @@ -27,6 +27,11 @@ import java.util.Optional; */ public interface MovementHelper extends ActionCosts, Helper { + List ACCEPTABLE_THROWAWAY_ITEMS = Arrays.asList( + Item.getItemFromBlock(Blocks.DIRT), + Item.getItemFromBlock(Blocks.COBBLESTONE) + ); + static boolean avoidBreaking(BlockPos pos) { Block b = BlockStateInterface.getBlock(pos); Block below = BlockStateInterface.get(new BlockPos(pos.getX(), pos.getY() - 1, pos.getZ())).getBlock(); @@ -157,7 +162,6 @@ public interface MovementHelper extends ActionCosts, Helper { } static boolean switchtothrowaway() { - List ACCEPTABLE_THROWAWAY_ITEMS = Arrays.asList(new Item[]{Item.getByNameOrId("minecraft:dirt"), Item.getByNameOrId("minecraft:cobblestone")}); EntityPlayerSP p = Minecraft.getMinecraft().player; NonNullList inv = p.inventory.mainInventory; for (byte i = 0; i < 9; i++) { @@ -171,7 +175,6 @@ public interface MovementHelper extends ActionCosts, Helper { } static boolean hasthrowaway() { - List ACCEPTABLE_THROWAWAY_ITEMS = Arrays.asList(new Item[]{Item.getByNameOrId("minecraft:dirt"), Item.getByNameOrId("minecraft:cobblestone")}); EntityPlayerSP p = Minecraft.getMinecraft().player; NonNullList inv = p.inventory.mainInventory; for (byte i = 0; i < 9; i++) {