mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-01 11:11:21 +01:00
Fixed error spam when disabling world gen
This commit is contained in:
parent
8bb5764c5e
commit
43a1066cb2
@ -34,11 +34,16 @@ public class WorldGenManager implements Listener {
|
||||
private static final Random random = new Random();
|
||||
|
||||
public WorldGenManager() {
|
||||
if (!MMOItems.plugin.getLanguage().worldGenEnabled)
|
||||
return;
|
||||
|
||||
/*
|
||||
* load the worldGenManager even if world gen is not enabled so that if
|
||||
* admins temporarily disable it, there is no console error spam saying
|
||||
* MI could not find corresponding gen template in config
|
||||
*/
|
||||
reload();
|
||||
Bukkit.getPluginManager().registerEvents(this, MMOItems.plugin);
|
||||
|
||||
if (MMOItems.plugin.getLanguage().worldGenEnabled)
|
||||
Bukkit.getPluginManager().registerEvents(this, MMOItems.plugin);
|
||||
}
|
||||
|
||||
public WorldGenTemplate getOrThrow(String id) {
|
||||
|
Loading…
Reference in New Issue
Block a user