fix sponge structure generation

This commit is contained in:
dfsek 2021-12-30 01:11:25 -07:00
parent ca52a3e740
commit 7039a28326

View File

@ -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);