diff options
Diffstat (limited to 'advtrains/nodedb.lua')
-rw-r--r-- | advtrains/nodedb.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua index 62405ce..408ff5d 100644 --- a/advtrains/nodedb.lua +++ b/advtrains/nodedb.lua @@ -229,7 +229,7 @@ end function ndb.swap_node(pos, node, no_inval) - if advtrains.is_node_loaded(pos) then + if core.compare_block_status(pos, "loaded") then minetest.swap_node(pos, node) end ndb.update(pos, node) @@ -383,7 +383,7 @@ local ptime=0 minetest.register_chatcommand("at_sync_ndb", { params = "", -- Short parameter description - description = "Write node db back to map and find ghost nodes", -- Full description + description = attrans("Write node db back to map and find ghost nodes"), -- Full description privs = {train_operator=true}, func = function(name, param) if os.time() < ptime+30 and not minetest.get_player_privs(name, "server") then |