Removed unnecessary conditional check

This commit is contained in:
David Berdik 2019-12-27 18:47:07 -05:00
parent 6eefa9cc52
commit 2ab95750d7

View File

@ -73,16 +73,6 @@ public class HerobrineAI extends JavaPlugin implements Listener {
PluginDescriptionFile pdf = this.getDescription(); PluginDescriptionFile pdf = this.getDescription();
versionStr = pdf.getVersion(); versionStr = pdf.getVersion();
boolean errorCheck = true;
try {
Class.forName("net.minecraft.server.v1_15_R1.EntityTypes");
} catch (ClassNotFoundException e) {
errorCheck = false;
isInitDone = false;
}
if (errorCheck) {
isInitDone = true; isInitDone = true;
HerobrineAI.pluginCore = this; HerobrineAI.pluginCore = this;
@ -205,12 +195,6 @@ public class HerobrineAI extends JavaPlugin implements Listener {
} else { } else {
log.warning("[HerobrineAI] Custom NPCs have been disabled. (Incompatibility error!)"); log.warning("[HerobrineAI] Custom NPCs have been disabled. (Incompatibility error!)");
} }
} else {
log.warning("[HerobrineAI] ******************ERROR******************");
log.warning("[HerobrineAI] This version is only compatible with bukkit version " + bukkit_ver_string);
log.warning("[HerobrineAI] *****************************************");
this.setEnabled(false);
}
} }
public void onDisable() { public void onDisable() {