diff options
author | orwell96 <orwell@bleipb.de> | 2021-02-03 09:30:44 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-02-03 09:30:44 +0100 |
commit | 8ae405f00f7073bca8cb621612ab11bc730228a3 (patch) | |
tree | 8eb6d7b055df6cf2be0887cf7b3b85532e47ead2 /advtrains/nodedb.lua | |
parent | d8d1d27ccb622dfc8e80eb5eb44e6020a1655389 (diff) | |
download | advtrains-8ae405f00f7073bca8cb621612ab11bc730228a3.tar.gz advtrains-8ae405f00f7073bca8cb621612ab11bc730228a3.tar.bz2 advtrains-8ae405f00f7073bca8cb621612ab11bc730228a3.zip |
Discard get_node_or_nil() for area-loaded check and use either a distance-based approach or minetest.is_block_active() if available
See also https://github.com/minetest/minetest/pull/10897
Diffstat (limited to 'advtrains/nodedb.lua')
-rw-r--r-- | advtrains/nodedb.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua index 531979e..bdde44a 100644 --- a/advtrains/nodedb.lua +++ b/advtrains/nodedb.lua @@ -223,7 +223,7 @@ end function ndb.swap_node(pos, node, no_inval) - if minetest.get_node_or_nil(pos) then + if advtrains.is_node_loaded(pos) then minetest.swap_node(pos, node) end ndb.update(pos, node) |