-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed null world on biome set #774
Conversation
setIslandBiome(island, XBiome.matchXBiome(schematicConfig.overworld.biome)); | ||
setIslandBiome(island, XBiome.matchXBiome(schematicConfig.nether.biome)); | ||
setIslandBiome(island, XBiome.matchXBiome(schematicConfig.end.biome)); | ||
|
||
for(Map.Entry<World.Environment, Boolean> enabledWorld : IridiumSkyblock.getInstance().getConfiguration().enabledWorlds.entrySet()) { | ||
if(!enabledWorld.getValue()) { | ||
continue; | ||
} | ||
|
||
switch (enabledWorld.getKey()) { | ||
case NETHER: | ||
setIslandBiome(island, XBiome.matchXBiome(schematicConfig.nether.biome)); | ||
break; | ||
case THE_END: | ||
setIslandBiome(island, XBiome.matchXBiome(schematicConfig.end.biome)); | ||
break; | ||
default: | ||
setIslandBiome(island, XBiome.matchXBiome(schematicConfig.overworld.biome)); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this section not stay how it is? since we already handle if the world is enabled in setIslandBiome no?
I think the previous code is alot cleaner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ill do some testing, i also found it a bit redundant but i wanted to make sure we got rid of the problem
this still doesn't help anything if the worlds are enabled/disabled during server runtime - this is a separate issue tho
see IS 768