mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-05-11 05:10:22 +02:00
Slightly improve storage reading code
This commit is contained in:
parent
5e85b61af2
commit
9e86d75577
@ -55,7 +55,7 @@ local function read_tube_db()
|
||||
if tonumber(key) then
|
||||
tp_tube_db[key] = minetest.deserialize(val)
|
||||
elseif key == "version" then
|
||||
tp_tube_db[key] = tonumber(val)
|
||||
tp_tube_db.version = tonumber(val)
|
||||
else
|
||||
error("Unknown field in teleport tube DB: " .. key)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user