Allow all ingedients of recipes into the cauldron

This commit is contained in:
Sn0wStorm
2015-03-16 16:31:45 +01:00
parent b8e0f1f38b
commit 82837e1977
3 changed files with 25 additions and 3 deletions
+21 -2
View File
@@ -70,7 +70,15 @@ public class P extends JavaPlugin {
String v = Bukkit.getBukkitVersion();
useUUID = !v.matches(".*1\\.[1-6].*") && !v.matches(".*1\\.7\\.[0-5].*");
if (!readConfig()) {
// load the Config
try {
if (!readConfig()) {
p = null;
getServer().getPluginManager().disablePlugin(this);
return;
}
} catch (Exception e) {
e.printStackTrace();
p = null;
getServer().getPluginManager().disablePlugin(this);
return;
@@ -161,7 +169,18 @@ public class P extends JavaPlugin {
}
// load the Config
readConfig();
try {
if (!readConfig()) {
p = null;
getServer().getPluginManager().disablePlugin(this);
return;
}
} catch (Exception e) {
e.printStackTrace();
p = null;
getServer().getPluginManager().disablePlugin(this);
return;
}
// save and load LanguageReader
languageReader.save();