diff options
author | Beha <shacknetisp@mail.com> | 2018-09-27 09:58:05 -0400 |
---|---|---|
committer | Beha <shacknetisp@mail.com> | 2018-09-27 09:58:05 -0400 |
commit | ffedde3bd611a8f29398f9db71b198be5b23c4dc (patch) | |
tree | 8cb4a2a4a9f255bd639e0f184b481ae8e0178e6d | |
parent | 52b78a67f0db3e7941aceec9351cc82edbd2fa8f (diff) |
Compat.origin/masterorigin/HEAD
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ local str = minetest.get_mod_storage and minetest.get_mod_storage() local elevator_file = minetest.get_worldpath() .. "/elevator" local function load_elevator() - if str and str:contains("data") then + if str and ((str.contains and str:contains("data")) or (str:get_string("data") and str:get_string("data") ~= "")) then elevator = minetest.deserialize(str:get_string("data")) return end |