Fix compile

This commit is contained in:
Jesse Boyd
2019-12-19 16:19:46 +00:00
parent aac30742de
commit 6a49b71cf2
48 changed files with 2649 additions and 85 deletions

View File

@ -168,8 +168,8 @@ public class AbstractDelegateExtent implements Extent, LightingExtent {
}
@Override
public BiomeType getBiomeType(int x, int z) {
return extent.getBiomeType(x, z);
public BiomeType getBiomeType(int x, int y, int z) {
return extent.getBiomeType(x, y, z);
}
@Override

View File

@ -79,10 +79,10 @@ public interface InputExtent {
* @return the biome at the location
*/
default BiomeType getBiome(BlockVector2 position) {
return getBiomeType(position.getX(), position.getZ());
return getBiomeType(position.getX(), 0, position.getZ());
}
default BiomeType getBiomeType(int x, int z) {
default BiomeType getBiomeType(int x, int y, int z) {
return getBiome(MutableBlockVector2.get(x, z));
}
}

View File

@ -177,7 +177,7 @@ public class BlockArrayClipboard extends DelegateClipboard implements Clipboard,
@Override
public BiomeType getBiome(BlockVector2 position) {
BlockVector2 v = position.subtract(region.getMinimumPoint().toBlockVector2());
return getParent().getBiomeType(v.getX(), v.getZ());
return getParent().getBiomeType(v.getX(), 0, v.getZ());
}
@Override
@ -234,10 +234,10 @@ public class BlockArrayClipboard extends DelegateClipboard implements Clipboard,
}
@Override
public BiomeType getBiomeType(int x, int z) {
public BiomeType getBiomeType(int x, int y, int z) {
x -= offset.getX();
z -= offset.getZ();
return getParent().getBiomeType(x, z);
return getParent().getBiomeType(x, y, z);
}
@Override