mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 21:40:08 +00:00
fix sponge structure generation
This commit is contained in:
1 parent
ca52a3e740
commit
7039a28326
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user