Add bottom of world check to wizard tower foundation worldgen, fixes #73
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user