mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-20 23:36:52 +00:00
Fake world improvements
This commit is contained in:
1 parent
a48400535f
commit
0527066a4c
1 file changed
+5
-2
@@ -29,17 +29,20 @@ import java.util.function.Predicate;
|
||||
public class FakeWorld implements World
|
||||
{
|
||||
private final int height;
|
||||
private final int minHeight;
|
||||
private final long seed;
|
||||
private final File worldFolder;
|
||||
private final Environment environment;
|
||||
@Setter
|
||||
private String worldName;
|
||||
|
||||
public FakeWorld(int height, long seed, File worldFolder, Environment environment)
|
||||
public FakeWorld(String name, int minHeight, int height, long seed, File worldFolder, Environment environment)
|
||||
{
|
||||
this.worldName = name;
|
||||
this.height = height;
|
||||
this.seed = seed;
|
||||
this.worldFolder = worldFolder;
|
||||
this.minHeight = minHeight;
|
||||
this.environment = environment;
|
||||
worldFolder.mkdirs();
|
||||
}
|
||||
@@ -898,7 +901,7 @@ public class FakeWorld implements World
|
||||
}
|
||||
|
||||
@Override public int getMinHeight() {
|
||||
return 0;
|
||||
return minHeight;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user