(hopefully) fixed config reloading now
This commit is contained in:
parent
07e5153c40
commit
9643947f0f
|
|
@ -42,7 +42,15 @@ public class Configs {
|
|||
@SubscribeEvent
|
||||
public static void onLoad(final ModConfig.Loading event)
|
||||
{
|
||||
if (event.getConfig().getModId().equals(CarryOn.MODID))
|
||||
{
|
||||
ListHandler.initConfigLists();
|
||||
|
||||
CommentedConfig cfg = event.getConfig().getConfigData();
|
||||
|
||||
if(cfg instanceof CommentedFileConfig)
|
||||
((CommentedFileConfig) cfg).load();
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ public class ListHandler
|
|||
}
|
||||
|
||||
public static void initConfigLists()
|
||||
{
|
||||
{
|
||||
FORBIDDEN_ENTITIES.clear();
|
||||
FORBIDDEN_ENTITIES_TAGS.clear();
|
||||
FORBIDDEN_STACKING.clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user