mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-16 22:19:25 +07:00
cancel deferring ops in systems on error
This commit is contained in:
@@ -4466,7 +4466,7 @@ local function __system_process(system)
|
|||||||
local success, result = __lua_pcall(execute, chunk, entity_list, entity_count)
|
local success, result = __lua_pcall(execute, chunk, entity_list, entity_count)
|
||||||
|
|
||||||
if not success then
|
if not success then
|
||||||
__evolved_commit()
|
__evolved_cancel()
|
||||||
__error_fmt('system execution failed: %s', result)
|
__error_fmt('system execution failed: %s', result)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user