From 286f6862cbc99340ab1fdb7921eefff14630a248 Mon Sep 17 00:00:00 2001 From: "Luis C.M" Date: Wed, 23 Mar 2022 17:48:58 -0500 Subject: [PATCH] Small clarifications in the new scripting configs, and removed some unused imports. --- src/main/java/noppes/npcs/CustomNpcs.java | 8 ++++---- .../noppes/npcs/client/gui/script/GuiScriptAllNPCs.java | 2 -- .../java/noppes/npcs/controllers/data/NPCDataScript.java | 2 -- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/java/noppes/npcs/CustomNpcs.java b/src/main/java/noppes/npcs/CustomNpcs.java index 47ee46c1d..654a8a712 100644 --- a/src/main/java/noppes/npcs/CustomNpcs.java +++ b/src/main/java/noppes/npcs/CustomNpcs.java @@ -47,16 +47,16 @@ public class CustomNpcs { @ConfigProp(info = "The size of IO executors used for compression and decompression. This is the number of threads used for compression and decompression. If you are experiencing issues with the server lagging/crashing, try changing this to a higher number.") public static int CompressorThreads = 2; - @ConfigProp(info = "Enables/Disables ALL scripting. True by default") + @ConfigProp(info = "Enables/Disables ALL scripting. You can still see and write code in the scripter, but these scripts won't run. True by default") public static boolean ScriptingEnabled = true; - @ConfigProp(info = "Enables global player event scripts to be used in the scripter. True by default") + @ConfigProp(info = "Enables global player event scripts to be used in the scripter. You can still see and write code in the scripter, but these scripts won't run. True by default.") public static boolean GlobalPlayerScripts = true; - @ConfigProp(info = "Enables global forge event scripts to be used in the scripter. True by default") + @ConfigProp(info = "Enables global forge event scripts to be used in the scripter. You can still see and write code in the scripter, but these scripts won't run. True by default.") public static boolean GlobalForgeScripts = true; - @ConfigProp(info = "Enables global NPC scripts to be used in the scripter. False by default, use with caution!") + @ConfigProp(info = "Enables global NPC scripts to be used in the scripter. You can still see and write code in the scripter, but these scripts won't run. False by default, use with caution!") public static boolean GlobalNPCScripts = false; @ConfigProp(info = "Navigation search range for NPCs. Not recommended to increase if you have a slow pc or on a server. Minimum of 16, maximum of 96.") diff --git a/src/main/java/noppes/npcs/client/gui/script/GuiScriptAllNPCs.java b/src/main/java/noppes/npcs/client/gui/script/GuiScriptAllNPCs.java index 1c4c10c05..aa251d93e 100644 --- a/src/main/java/noppes/npcs/client/gui/script/GuiScriptAllNPCs.java +++ b/src/main/java/noppes/npcs/client/gui/script/GuiScriptAllNPCs.java @@ -2,10 +2,8 @@ package noppes.npcs.client.gui.script; import net.minecraft.nbt.NBTTagCompound; import noppes.npcs.client.Client; -import noppes.npcs.client.gui.util.GuiNPCInterface; import noppes.npcs.constants.EnumPacketServer; import noppes.npcs.controllers.ScriptController; -import noppes.npcs.controllers.data.ForgeDataScript; import noppes.npcs.controllers.data.NPCDataScript; public class GuiScriptAllNPCs extends GuiScriptInterface { diff --git a/src/main/java/noppes/npcs/controllers/data/NPCDataScript.java b/src/main/java/noppes/npcs/controllers/data/NPCDataScript.java index 248990d55..4e05af3e5 100644 --- a/src/main/java/noppes/npcs/controllers/data/NPCDataScript.java +++ b/src/main/java/noppes/npcs/controllers/data/NPCDataScript.java @@ -5,7 +5,6 @@ import cpw.mods.fml.common.eventhandler.Event; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.math.BlockPos; import noppes.npcs.CustomNpcs; -import noppes.npcs.EventHooks; import noppes.npcs.NBTTags; import noppes.npcs.constants.EnumScriptType; import noppes.npcs.controllers.IScriptHandler; @@ -13,7 +12,6 @@ import noppes.npcs.controllers.ScriptContainer; import noppes.npcs.controllers.ScriptController; import noppes.npcs.entity.EntityNPCInterface; import noppes.npcs.scripted.NpcAPI; -import noppes.npcs.scripted.entity.ScriptNpc; import noppes.npcs.scripted.interfaces.ICustomNpc; import javax.annotation.CheckForNull;