Another potential fix for WSE crash

This commit is contained in:
IQuant 2024-11-28 16:41:54 +03:00
parent 2680fc0ab0
commit b506dac333
2 changed files with 33 additions and 11 deletions

View file

@ -4,6 +4,15 @@ local base64 = dofile_once("mods/quant.ew/files/resource/base64.lua")
local util = {}
local entity_load_orig = EntityLoad
function EntityLoad(path, ...)
if path == "??SAV/world_state.xml" then
error("Attempted to EntityLoad WSE")
end
return entity_load_orig(path, ...)
end
function util.string_split( s, splitter )
local words = {};
if s == nil or splitter == nil then