forked from RepoMirrors/baritone
ugh
This commit is contained in:
parent
2fdcf8640d
commit
cc11310cde
|
@ -54,3 +54,6 @@ nbproject/
|
|||
/updatenames.sh
|
||||
/src/minecraft/net
|
||||
/src/minecraft/mcp
|
||||
/classes
|
||||
|
||||
*.class
|
||||
|
|
|
@ -392,11 +392,11 @@ public class MickeyMine extends ManagerTick {
|
|||
}
|
||||
|
||||
public static IntegerTuple tupleFromChunk(Chunk chunk) {
|
||||
return new IntegerTuple(chunk.xPosition, chunk.zPosition);
|
||||
return new IntegerTuple(chunk.x, chunk.z);
|
||||
}
|
||||
|
||||
public static IntegerTuple tupleFromBlockPos(BlockPos blockPos) {
|
||||
return tupleFromChunk(Minecraft.getMinecraft().world.getChunkFromBlockCoords(blockPos));
|
||||
return tupleFromChunk(Minecraft.getMinecraft().world.getChunk(blockPos));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -114,7 +114,7 @@ public class PathFinder {
|
|||
if (actionCost >= Action.COST_INF) {
|
||||
continue;
|
||||
}
|
||||
if (Minecraft.getMinecraft().world.getChunkFromBlockCoords(actionToGetToNeighbor.to) instanceof EmptyChunk) {
|
||||
if (Minecraft.getMinecraft().world.getChunk(actionToGetToNeighbor.to) instanceof EmptyChunk) {
|
||||
numEmptyChunk++;
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ public class SchematicLoader {
|
|||
private static final HashMap<File, Schematic> cachedSchematics = new HashMap<>();
|
||||
|
||||
private SchematicLoader() {
|
||||
schematicDir = new File(Minecraft.getMinecraft().mcDataDir, "schematics");
|
||||
schematicDir = new File(Minecraft.getMinecraft().gameDir, "schematics");
|
||||
schematicDir.mkdir();
|
||||
for (File file : schematicDir.listFiles(new FileFilter() {
|
||||
@Override
|
||||
|
|
|
@ -359,7 +359,7 @@ public class Memory extends Manager {
|
|||
return n;
|
||||
}
|
||||
public static boolean blockLoaded(BlockPos pos) {
|
||||
return !(Minecraft.getMinecraft().world.getChunkFromBlockCoords(pos) instanceof EmptyChunk);
|
||||
return !(Minecraft.getMinecraft().world.getChunk(pos) instanceof EmptyChunk);
|
||||
}
|
||||
public static String gotoCommand(String targetName) {
|
||||
for (String name : playerLocationMemory.keySet()) {
|
||||
|
|
|
@ -60,6 +60,7 @@ public class ToolSet {
|
|||
item = Item.getByNameOrId("minecraft:apple");
|
||||
}
|
||||
//Out.log(inv[i]);
|
||||
|
||||
float v = item.getStrVsBlock(new ItemStack(item), b);
|
||||
//Out.log("v: " + v);
|
||||
if (v > value) {
|
||||
|
|
Loading…
Reference in New Issue