Fix incorrect height when generating ores. Closes #1007

(cherry picked from commit d50f91d)
This commit is contained in:
modmuss50 2017-03-14 12:40:06 +00:00
parent e248cb5dc2
commit a960f1820a
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -247,7 +247,7 @@ public class TechRebornWorldGen implements IWorldGenerator {
if (ore.maxYHeight == -1 || ore.minYHeight == -1) {
continue;
}
yPos = 10 + random.nextInt(ore.maxYHeight - ore.minYHeight);
yPos = ore.minYHeight + random.nextInt(ore.maxYHeight - ore.minYHeight);
zPos = chunkZ * 16 + random.nextInt(16);
BlockPos pos = new BlockPos(xPos, yPos, zPos);
if(ore.blockNiceName.equalsIgnoreCase("iridium")){ //Work around for iridium