mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Fixed dimension loaders
This commit is contained in:
parent
128e5c414c
commit
e45eb7f2be
@ -458,11 +458,22 @@ public class Iris extends VolmitPlugin implements Listener {
|
|||||||
|
|
||||||
IrisDimension d = IrisData.loadAnyDimension(dimension);
|
IrisDimension d = IrisData.loadAnyDimension(dimension);
|
||||||
|
|
||||||
|
if(d == null)
|
||||||
|
{
|
||||||
|
Iris.warn("Unable to find dimension type " + id + " Looking for online packs...");
|
||||||
|
d = IrisData.loadAnyDimension(dimension);
|
||||||
|
|
||||||
if(d == null)
|
if(d == null)
|
||||||
{
|
{
|
||||||
throw new RuntimeException("Can't find dimension " + dimension + "!");
|
throw new RuntimeException("Can't find dimension " + dimension + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Iris.info("Resolved missing dimension, proceeding with generation.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
IrisWorld w = IrisWorld.builder()
|
IrisWorld w = IrisWorld.builder()
|
||||||
.name(worldName)
|
.name(worldName)
|
||||||
.seed(RNG.r.lmax())
|
.seed(RNG.r.lmax())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user