Skip to content

Commit

Permalink
fix: do not forcefully direct to x,y,z methods in AbstractDelegateExt…
Browse files Browse the repository at this point in the history
…ent (#2614)

- we probably shouldn't be doing this
  • Loading branch information
dordsor21 committed Mar 14, 2024
1 parent 1053d46 commit facd31c
Showing 1 changed file with 5 additions and 17 deletions.
Expand Up @@ -91,9 +91,7 @@ public Extent getExtent() {

@Override
public BlockState getBlock(BlockVector3 position) {
//FAWE start - return coordinates
return extent.getBlock(position.getX(), position.getY(), position.getZ());
//FAWE end
return extent.getBlock(position);
}

@Override
Expand All @@ -103,9 +101,7 @@ public BlockState getBlock(int x, int y, int z) {

@Override
public BaseBlock getFullBlock(BlockVector3 position) {
//FAWE start - return coordinates
return extent.getFullBlock(position.getX(), position.getY(), position.getZ());
//FAWE end
return extent.getFullBlock(position);
}

//FAWE start
Expand All @@ -117,9 +113,7 @@ public BaseBlock getFullBlock(BlockVector3 position) {

@Override
public BaseBlock getFullBlock(int x, int y, int z) {
//FAWE start - return coordinates
return extent.getFullBlock(x, y, z);
//FAWE end
}

@Override
Expand Down Expand Up @@ -375,9 +369,7 @@ protected Operation commitBefore() {

@Override
public BiomeType getBiome(BlockVector3 position) {
//FAWE start - switch top x,y,z
return extent.getBiomeType(position.getX(), position.getY(), position.getZ());
//FAWE end
return extent.getBiome(position);
}

//FAWE start
Expand Down Expand Up @@ -420,9 +412,7 @@ public void setChangeSet(AbstractChangeSet changeSet) {
@Override
public <T extends BlockStateHolder<T>> boolean setBlock(BlockVector3 position, T block)
throws WorldEditException {
//FAWE start - switch to x,y,z
return extent.setBlock(position.getX(), position.getY(), position.getZ(), block);
//FAWE end
return extent.setBlock(position, block);
}

//FAWE start
Expand All @@ -447,9 +437,7 @@ public boolean fullySupports3DBiomes() {

@Override
public boolean setBiome(BlockVector3 position, BiomeType biome) {
//FAWE start - switch to x,y,z
return extent.setBiome(position.getX(), position.getY(), position.getZ(), biome);
//FAWE end
return extent.setBiome(position, biome);
}

//FAWE start
Expand Down

0 comments on commit facd31c

Please sign in to comment.