Skip to content

Commit

Permalink
Fixed #11
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Sep 2, 2014
1 parent 43d22fa commit 8e6ab7e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/net/doubledoordev/d3core/D3Core.java
Expand Up @@ -188,8 +188,15 @@ public void syncConfig()
sillyness = configuration.getBoolean("sillyness", MODID, sillyness, "Enable sillyness\nBut seriously, you can disable name changes, drops and block helmets with this setting.", "d3.core.config.sillyness");
updateWarning = configuration.getBoolean("updateWarning", MODID, updateWarning, "Allow update warnings on login", "d3.core.config.updateWarning");

if (sillyness) MinecraftForge.EVENT_BUS.register(getDevPerks());
else MinecraftForge.EVENT_BUS.unregister(getDevPerks());
try
{
if (sillyness) MinecraftForge.EVENT_BUS.register(getDevPerks());
else MinecraftForge.EVENT_BUS.unregister(getDevPerks());
}
catch (NullPointerException e)
{
// Noop. Forge, fix your shit :p
}

if (configuration.hasChanged()) configuration.save();
}
Expand Down

0 comments on commit 8e6ab7e

Please sign in to comment.