mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 08:25:31 +00:00
fix sponge structure generation
This commit is contained in:
parent
ca52a3e740
commit
7039a28326
@ -40,7 +40,7 @@ public class SpongeStructure implements Structure, Keyed<SpongeStructure> {
|
|||||||
Vector2Int r = Vector2Int.of(x, z).rotate(rotation);
|
Vector2Int r = Vector2Int.of(x, z).rotate(rotation);
|
||||||
int rX = r.getX();
|
int rX = r.getX();
|
||||||
int rZ = r.getZ();
|
int rZ = r.getZ();
|
||||||
for(int y = 0; y < blocks[z].length; y++) {
|
for(int y = 0; y < blocks[x][z].length; y++) {
|
||||||
BlockState state = blocks[x][z][y];
|
BlockState state = blocks[x][z][y];
|
||||||
if(state == null) continue;
|
if(state == null) continue;
|
||||||
world.setBlockState(bX + rX, bY + y, bZ + rZ, state);
|
world.setBlockState(bX + rX, bY + y, bZ + rZ, state);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user