Remove legacy server.properties workaround
This commit is contained in:
parent
7bca7e9707
commit
4b44cdc955
1 changed files with 0 additions and 17 deletions
|
@ -39,7 +39,6 @@ public class BiomesOPlenty
|
|||
|
||||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::commonSetup);
|
||||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientSetup);
|
||||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::dedicatedServerSetup);
|
||||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::loadComplete);
|
||||
MinecraftForge.EVENT_BUS.addListener(this::serverStarting);
|
||||
|
||||
|
@ -47,22 +46,6 @@ public class BiomesOPlenty
|
|||
ModConfig.setup();
|
||||
}
|
||||
|
||||
public void dedicatedServerSetup(FMLDedicatedServerSetupEvent event)
|
||||
{
|
||||
ServerProperties serverProperties = event.getServerSupplier().get().getProperties();
|
||||
|
||||
if (ModConfig.ServerConfig.useWorldType.get())
|
||||
{
|
||||
logger.info(String.format("Injecting biomesoplenty world type into server.properties. Original value: %s", serverProperties.levelType.getName()));
|
||||
serverProperties.properties.setProperty("level-type", "biomesoplenty");
|
||||
serverProperties.levelType = ModBiomes.worldType;
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.info("Biomes O' Plenty is installed on this server but generation is disabled.");
|
||||
}
|
||||
}
|
||||
|
||||
private void commonSetup(final FMLCommonSetupEvent event)
|
||||
{
|
||||
ModVanillaCompat.setup();
|
||||
|
|
Loading…
Reference in a new issue