mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-07 10:00:24 +02:00
Remove duplicate serialization
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user