All global NPC scripts are now called before local NPC scripts

Fixed event NPC scripts not running after erroring, and not outputting to the console
This commit is contained in:
Luis C.M committed 2023-03-16 16:43:05 -05:00
1 parent 57bd628357
commit e58b494979
4 files changed
+26 -13

No files matched your search

@@ -207,7 +207,7 @@ public class PacketHandlerServer{
}
}
private void getScripts(IScriptHandler data, ByteBuf buffer, EntityPlayerMP player) throws Exception {
private void getScripts(IScriptHandler data, ByteBuf buffer, EntityPlayerMP player) {
NBTTagCompound compound = new NBTTagCompound();
compound.setBoolean("ScriptEnabled", data.getEnabled());
compound.setString("ScriptLanguage", data.getLanguage());