geforkt von Mirrors/FastAsyncWorldEdit
fix: do not forcefully direct to x,y,z methods in AbstractDelegateExtent (#2614)
- we probably shouldn't be doing this
Dieser Commit ist enthalten in:
Ursprung
1053d467a4
Commit
facd31ce31
@ -91,9 +91,7 @@ public class AbstractDelegateExtent implements Extent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockState getBlock(BlockVector3 position) {
|
public BlockState getBlock(BlockVector3 position) {
|
||||||
//FAWE start - return coordinates
|
return extent.getBlock(position);
|
||||||
return extent.getBlock(position.getX(), position.getY(), position.getZ());
|
|
||||||
//FAWE end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -103,9 +101,7 @@ public class AbstractDelegateExtent implements Extent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BaseBlock getFullBlock(BlockVector3 position) {
|
public BaseBlock getFullBlock(BlockVector3 position) {
|
||||||
//FAWE start - return coordinates
|
return extent.getFullBlock(position);
|
||||||
return extent.getFullBlock(position.getX(), position.getY(), position.getZ());
|
|
||||||
//FAWE end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//FAWE start
|
//FAWE start
|
||||||
@ -117,9 +113,7 @@ public class AbstractDelegateExtent implements Extent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BaseBlock getFullBlock(int x, int y, int z) {
|
public BaseBlock getFullBlock(int x, int y, int z) {
|
||||||
//FAWE start - return coordinates
|
|
||||||
return extent.getFullBlock(x, y, z);
|
return extent.getFullBlock(x, y, z);
|
||||||
//FAWE end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -375,9 +369,7 @@ public class AbstractDelegateExtent implements Extent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BiomeType getBiome(BlockVector3 position) {
|
public BiomeType getBiome(BlockVector3 position) {
|
||||||
//FAWE start - switch top x,y,z
|
return extent.getBiome(position);
|
||||||
return extent.getBiomeType(position.getX(), position.getY(), position.getZ());
|
|
||||||
//FAWE end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//FAWE start
|
//FAWE start
|
||||||
@ -420,9 +412,7 @@ public class AbstractDelegateExtent implements Extent {
|
|||||||
@Override
|
@Override
|
||||||
public <T extends BlockStateHolder<T>> boolean setBlock(BlockVector3 position, T block)
|
public <T extends BlockStateHolder<T>> boolean setBlock(BlockVector3 position, T block)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
//FAWE start - switch to x,y,z
|
return extent.setBlock(position, block);
|
||||||
return extent.setBlock(position.getX(), position.getY(), position.getZ(), block);
|
|
||||||
//FAWE end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//FAWE start
|
//FAWE start
|
||||||
@ -447,9 +437,7 @@ public class AbstractDelegateExtent implements Extent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean setBiome(BlockVector3 position, BiomeType biome) {
|
public boolean setBiome(BlockVector3 position, BiomeType biome) {
|
||||||
//FAWE start - switch to x,y,z
|
return extent.setBiome(position, biome);
|
||||||
return extent.setBiome(position.getX(), position.getY(), position.getZ(), biome);
|
|
||||||
//FAWE end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//FAWE start
|
//FAWE start
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren