From 54ca6e78f5f186a95530940f5b5f4333b6c429bb Mon Sep 17 00:00:00 2001 From: NuclearW Date: Sun, 24 Feb 2013 00:01:01 -0500 Subject: [PATCH] Revert "Fixing an IllegalArgumentException related to custom repair configs." This reverts commit 3036d4fa9097800373d706a8e05764b8cc240da2. --- src/main/java/com/gmail/nossr50/config/ConfigLoader.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/ConfigLoader.java b/src/main/java/com/gmail/nossr50/config/ConfigLoader.java index 6d1620e63..f5d18a530 100644 --- a/src/main/java/com/gmail/nossr50/config/ConfigLoader.java +++ b/src/main/java/com/gmail/nossr50/config/ConfigLoader.java @@ -46,13 +46,7 @@ public abstract class ConfigLoader { } config = YamlConfiguration.loadConfiguration(configFile); - InputStream resource = plugin.getResource(fileName); - - if (resource == null) { - return; - } - - FileConfiguration internalConfig = YamlConfiguration.loadConfiguration(resource); + FileConfiguration internalConfig = YamlConfiguration.loadConfiguration(plugin.getResource(fileName)); Set configKeys = config.getKeys(true); Set internalConfigKeys = internalConfig.getKeys(true);