Global event script buttons and the script GUI for an NPC are enabled/disabled/darkened based on their respective configs.

This commit is contained in:
Luis C.M committed 2022-03-23 18:54:55 -05:00
1 parent 286f6862cb
commit 3066e1dfbc
3 files changed
+14 -4

No files matched your search

@@ -355,7 +355,7 @@ public class ClientProxy extends CommonProxy {
else if(gui == EnumGuiType.PlayerTransporter)
return new GuiTransportSelection(npc);
else if(gui == EnumGuiType.Script)
else if(gui == EnumGuiType.Script && CustomNpcs.ScriptingEnabled)
return new GuiScript(npc);
else if(gui == EnumGuiType.PlayerAnvil)