Fix all remaining errors in mantle's code, rename a few classes to match the new naming scheme. Sorry KnightMiner <3

This commit is contained in:
alexbegt committed 2019-06-25 13:32:57 -04:00
1 parent 5a1b21ea1c
commit 5ef2555b69
117 files changed
+2236 -2616

No files matched your search

@@ -23,8 +23,8 @@ import java.util.function.Predicate;
import javax.annotation.Nullable;
public class StructureBlockAccess implements IWorldReader
{
public class StructureBlockAccess implements IWorldReader {
private final StructureInfo data;
private final BlockState[][][] structure;
@@ -56,11 +56,11 @@ public class StructureBlockAccess implements IWorldReader
int y = pos.getY();
int z = pos.getZ();
if(y >= 0 && y < this.structure.length) {
if(x >= 0 && x < this.structure[y].length) {
if(z >= 0 && z < this.structure[y][x].length) {
if (y >= 0 && y < this.structure.length) {
if (x >= 0 && x < this.structure[y].length) {
if (z >= 0 && z < this.structure[y][x].length) {
int index = y * (this.data.structureLength * this.data.structureWidth) + x * this.data.structureWidth + z;
if(index <= this.data.getLimiter()) {
if (index <= this.data.getLimiter()) {
return this.structure[y][x][z] != null ? this.structure[y][x][z] : Blocks.AIR.getDefaultState();
}
}