Add bottom of world check to wizard tower foundation worldgen, fixes #73

This commit is contained in:
Electroblob77
2019-01-04 19:57:33 +00:00
parent 38b0fa65bc
commit 09953c0299
@@ -237,7 +237,8 @@ public class WizardryWorldGenerator implements IWorldGenerator {
// BlockPos is immutable, so I'm not sure if simply saying pos1 = pos will be sufficient.
BlockPos layerCentre = new BlockPos(origin);
while(flag){
// Stop when the bottom of the world is reached
while(flag && layerCentre.getY() > 0){
flag = false;