mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Fix isEnabled
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user