Fixed strongholds not generating properly.

This commit is contained in:
Vatuu
2022-10-28 22:01:23 +02:00
parent 7b93542014
commit 7dd1d3881a
3 changed files with 28 additions and 26 deletions

View File

@@ -98,7 +98,7 @@ public class PlannedStructure {
int zz = i.getPosition().getZ() + sz;
RNG rngf = new RNG(Cache.key(xx, zz));
int offset = i.getPosition().getY() - startHeight;
int height = 0;
int height;
if(i.getStructure().getStructure().getLockY() == -1) {
if(i.getStructure().getStructure().getOverrideYRange() != null) {