Reworked @Config to support any phase loading

This commit is contained in:
tgame14 2014-04-21 14:10:05 +03:00
parent 7669547a75
commit a986e6457d

View file

@ -141,7 +141,7 @@ public class ResonantInduction
@ForgeSubscribe @ForgeSubscribe
public void configAnnotationAdded(ConfigAnnotationEvent event) public void configAnnotationAdded(ConfigAnnotationEvent event)
{ {
if (event.sourceClass.startsWith(Settings.DOMAIN)) if (event.sourceClass.getName().startsWith(Settings.DOMAIN))
{ {
ConfigHandler.handleClass(event.sourceClass, Settings.CONFIGURATION); ConfigHandler.handleClass(event.sourceClass, Settings.CONFIGURATION);
} }