fixed derp in WordGen logic

This commit is contained in:
2016-05-02 13:08:22 +02:00
parent bd8db7ee7d
commit b6fb0f9ed9

View File

@@ -54,12 +54,12 @@ public class StateMatcher implements Predicate<IBlockState> {
for (int i = 0; i < maxI; i++) {
if ((-X / 2 <= x) && (x <= X / 2) && (-Z / 2 <= z) && (z <= Z / 2)) {
System.out.println(x + "," + z);
if (new BlockPos(x, Y, z) == origin)
continue;
IBlockState bState = world.getBlockState(new BlockPos(x, Y, z));
IBlockState bState = world.getBlockState(new BlockPos(origin.getX() + x, origin.getY() + Y, origin.getZ() + z));
if (bState.getBlock() == this.state.getBlock() && bState.getValue(property) == value) {
System.out.println(String.format("Found block with desired state! (%s)", new BlockPos(origin.getX() + x, origin.getY() + Y, origin.getZ() + z)));
return true;
}
}