This commit is contained in:
Reider745
2024-04-30 17:56:59 +03:00
parent 6c6752fb88
commit 7a50d31797
@@ -119,9 +119,6 @@ public class DimensionsMethods {
public CustomDimensionDescription(int id, String name){ public CustomDimensionDescription(int id, String name){
this.id = id; this.id = id;
this.name = name; this.name = name;
if(LEVELS_LOADED)
this.loadLevel(Server.getInstance());
} }
public int getId() { public int getId() {
@@ -190,6 +187,8 @@ public class DimensionsMethods {
generator.updateDescription(name, id); generator.updateDescription(name, id);
description.initLevel(level); description.initLevel(level);
ReflectHelper.setField(level, "dimensionData", generator.data); ReflectHelper.setField(level, "dimensionData", generator.data);
}else if(LEVELS_LOADED){
description.loadLevel(Server.getInstance());
} }
dimensionsId.put(name, id); dimensionsId.put(name, id);