aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trackplacer.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-04-25 21:53:41 +0200
committerorwell96 <orwell@bleipb.de>2021-04-25 21:54:51 +0200
commit112e3ff2555f1380a5125a9b09ef0a7fc81b053a (patch)
tree40a757346fa5ac19dc10e3ccf27cfc9b6da131dd /advtrains/trackplacer.lua
parente04c21be78f6c915537f7dc8fdbf8110d7eadcd0 (diff)
downloadadvtrains-112e3ff2555f1380a5125a9b09ef0a7fc81b053a.tar.gz
advtrains-112e3ff2555f1380a5125a9b09ef0a7fc81b053a.tar.bz2
advtrains-112e3ff2555f1380a5125a9b09ef0a7fc81b053a.zip
Fix undeclared globals warnings (#176)
Reported by Vanessa Dannenberg
Diffstat (limited to 'advtrains/trackplacer.lua')
-rw-r--r--advtrains/trackplacer.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/trackplacer.lua b/advtrains/trackplacer.lua
index 356df15..fe76290 100644
--- a/advtrains/trackplacer.lua
+++ b/advtrains/trackplacer.lua
@@ -286,6 +286,7 @@ function tp.register_track_placer(nnprefix, imgprefix, dispname, def)
return itemstack, false
end
if minetest.registered_nodes[minetest.get_node(pos).name] and minetest.registered_nodes[minetest.get_node(pos).name].buildable_to then
+ local s
if def.suitable_substrate then
s = def.suitable_substrate(upos)
else