aboutsummaryrefslogtreecommitdiff
path: root/advtrains/nodedb.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/nodedb.lua')
-rw-r--r--advtrains/nodedb.lua2
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)