aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/helpers.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/advtrains/helpers.lua b/advtrains/helpers.lua
index ce059de..2160444 100644
--- a/advtrains/helpers.lua
+++ b/advtrains/helpers.lua
@@ -334,4 +334,8 @@ function advtrains.random_id()
end
return idst
end
+-- Shorthand for pos_to_string and round_vector_floor_y
+function advtrains.roundfloorpts(pos)
+ return minetest.pos_to_string(advtrains.round_vector_floor_y(pos))
+end