mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-22 12:10:32 +02:00
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
|
||||
return false, "Ports set are invalid."
|
||||
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
|
||||
set_port_states(pos, env.port)
|
||||
|
|
Loading…
Reference in New Issue
Block a user