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