Remove duplicate serialization
This commit is contained in:
parent
622b82cfd6
commit
0d223241eb
|
@ -672,8 +672,6 @@ local function run_inner(pos, code, event)
|
||||||
if type(env.port) ~= "table" then
|
if type(env.port) ~= "table" then
|
||||||
return false, "Ports set are invalid."
|
return false, "Ports set are invalid."
|
||||||
end
|
end
|
||||||
local success, memstring = pcall(serialize_memory, env.mem)
|
|
||||||
if not success then return false, memstring end -- memstring is the error message here.
|
|
||||||
|
|
||||||
-- Actually set the ports
|
-- Actually set the ports
|
||||||
set_port_states(pos, env.port)
|
set_port_states(pos, env.port)
|
||||||
|
|
Loading…
Reference in New Issue