From c16d9fc3d6057338e6b5bfe620e3b763cac0c1d3 Mon Sep 17 00:00:00 2001 From: gpcf Date: Mon, 15 May 2023 09:18:02 +0200 Subject: Register luaatc functions in the mod itself --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 72e1f41..11f456f 100644 --- a/init.lua +++ b/init.lua @@ -120,3 +120,9 @@ minetest.register_abm({ chance = 1, action = display_api.update_entities, }) + +if atlatc then + atlatc.register_function("departureboard_set", function(pos, tb) + departureboards.contents[minetest.hash_node_position(pos)] = tb + end) +end -- cgit v1.2.3