Notch builds

This commit is contained in:
Brady
2019-03-08 23:18:00 -06:00
parent 1390e04435
commit e2cc51908b
3 changed files with 10 additions and 6 deletions
+3 -3
View File
@@ -125,9 +125,9 @@ public final class Settings {
* Blocks that Baritone is allowed to place (as throwaway, for sneak bridging, pillaring, etc.)
*/
public final Setting<List<Item>> acceptableThrowawayItems = new Setting<>(new ArrayList<>(Arrays.asList(
Item.getItemFromBlock(Blocks.DIRT),
Item.getItemFromBlock(Blocks.COBBLESTONE),
Item.getItemFromBlock(Blocks.NETHERRACK)
Blocks.DIRT.asItem(),
Blocks.COBBLESTONE.asItem(),
Blocks.NETHERRACK.asItem()
)));
/**
@@ -189,7 +189,7 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
Set<Item> searchingFor = new HashSet<>();
for (Block block : mining) {
Item drop = block.getItemDropped(block.getDefaultState(), world, null, 0).asItem();
Item ore = Item.getItemFromBlock(block);
Item ore = block.asItem();
searchingFor.add(drop);
searchingFor.add(ore);
}