diff --git a/src/main/java/me/eigenraven/personalspace/world/DimensionConfig.java b/src/main/java/me/eigenraven/personalspace/world/DimensionConfig.java index 457958b..97f37ca 100644 --- a/src/main/java/me/eigenraven/personalspace/world/DimensionConfig.java +++ b/src/main/java/me/eigenraven/personalspace/world/DimensionConfig.java @@ -38,7 +38,8 @@ public enum SkyType { VANILLA(null, null), BARNADA_C("galaxyspace.BarnardsSystem.planets.barnardaC.dimension.sky.SkyProviderBarnardaC", - "galaxyspace.BarnardsSystem.planets.barnardaC.dimension.sky.CloudProviderBarnardaC"),; + "galaxyspace.BarnardsSystem.planets.barnardaC.dimension.sky.CloudProviderBarnardaC"), + GARDEN_OF_GLASS("vazkii.botania.client.render.world.SkyblockSkyRenderer", null),; public final String skyProvider, cloudProvider; private Boolean isLoaded = null; @@ -58,8 +59,10 @@ public boolean isLoaded() { } if (isLoaded == null) { try { - Class skyClass = Class.forName(skyProvider); - Class cloudClass = Class.forName(cloudProvider); + Class skyClass; + if (skyProvider != null) skyClass = Class.forName(skyProvider); + Class cloudClass; + if (cloudProvider != null) cloudClass = Class.forName(cloudProvider); isLoaded = Boolean.TRUE; } catch (ClassNotFoundException e) { isLoaded = Boolean.FALSE; diff --git a/src/main/resources/assets/personalspace/lang/en_US.lang b/src/main/resources/assets/personalspace/lang/en_US.lang index eab9b89..872b3c5 100644 --- a/src/main/resources/assets/personalspace/lang/en_US.lang +++ b/src/main/resources/assets/personalspace/lang/en_US.lang @@ -32,6 +32,7 @@ gui.personalWorld.notAllowed=Not allowed by the server's configuration gui.personalWorld.skyType.VANILLA=Vanilla sky gui.personalWorld.skyType.BARNADA_C=Barnada C sky +gui.personalWorld.skyType.GARDEN_OF_GLASS=Garden of Glass sky commands.pspace.usage=/pspace (give-portal player DIM [X] [Y] [Z])|(tpx player DIM [X Y Z])|(ls)|(where player)|(allow-worldgen-change DIM) commands.pspace.badDimension=The specified dimension doesn't exist diff --git a/src/main/resources/assets/personalspace/lang/zh_CN.lang b/src/main/resources/assets/personalspace/lang/zh_CN.lang index 3ca7d1c..3e14f4f 100644 --- a/src/main/resources/assets/personalspace/lang/zh_CN.lang +++ b/src/main/resources/assets/personalspace/lang/zh_CN.lang @@ -30,9 +30,10 @@ gui.personalWorld.notAllowed=服务器配置不允许 gui.personalWorld.skyType.VANILLA=原版天空 gui.personalWorld.skyType.BARNADA_C=巴纳德C天空 +gui.personalWorld.skyType.GARDEN_OF_GLASS=水晶花园天空 commands.pspace.usage=/pspace (give-portal <玩家> <维度> [X] [Y] [Z])|(tpx <玩家> <维度> [X Y Z])|(ls)|(where <玩家>)|(allow-worldgen-change <维度>) commands.pspace.badDimension=指定维度不存在 commands.pspace.where=玩家 %s 位于维度 %d commands.pspace.tpx=将玩家 %s 传送到 %d: %d, %d, %d -commands.pspace.allow-worldgen-change=玩家 %s 已解锁维度 %d 的世界生成设置 \ No newline at end of file +commands.pspace.allow-worldgen-change=玩家 %s 已解锁维度 %d 的世界生成设置