Notch builds

This commit is contained in:
Brady 2019-03-08 23:18:00 -06:00
parent 1390e04435
commit e2cc51908b
No known key found for this signature in database
GPG Key ID: 73A788379A197567
3 changed files with 10 additions and 6 deletions

View File

@ -25,14 +25,17 @@ buildscript {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
maven {
name = 'impactdevelopment-repo'
url = 'https://impactdevelopment.github.io/maven/'
}
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
classpath group: 'com.github.ImpactDevelopment', name: 'ForgeGradle', version: '3.0.111'
}
}
import baritone.gradle.task.CreateDistTask
import baritone.gradle.task.ProguardTask
@ -76,6 +79,7 @@ minecraft {
minecraft {
mappings channel: 'snapshot', version: '20190307-1.13.1'
reobfMappings 'notch'
runs {
client {

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()
)));
/**

View File

@ -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);
}