mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 14:58:35 +00:00
Fix compile
This commit is contained in:
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user