Fix isEnabled

This commit is contained in:
KAMKEEL committed 2022-11-02 14:00:03 -04:00
1 parent e6dbfaa4f5
commit 29b716a25c
1 file changed
+2 -2
@@ -81,7 +81,7 @@ public class ForgeDataScript implements IScriptHandler {
}
public boolean isEnabled() {
return this.enabled && ScriptController.HasStart && this.scripts.size() > 0;
return this.enabled && CustomNpcs.GlobalForgeScripts && ScriptController.HasStart && this.scripts.size() > 0;
}
public boolean isClient() {
@@ -89,7 +89,7 @@ public class ForgeDataScript implements IScriptHandler {
}
public boolean getEnabled() {
return CustomNpcs.GlobalForgeScripts && this.enabled;
return this.enabled;
}
public void setEnabled(boolean bo) {