From 8ae405f00f7073bca8cb621612ab11bc730228a3 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 3 Feb 2021 09:30:44 +0100 Subject: 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 --- advtrains_luaautomation/active_common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains_luaautomation') diff --git a/advtrains_luaautomation/active_common.lua b/advtrains_luaautomation/active_common.lua index dac81b3..2146c93 100644 --- a/advtrains_luaautomation/active_common.lua +++ b/advtrains_luaautomation/active_common.lua @@ -101,7 +101,7 @@ function ac.run_in_env(pos, evtdata, customfct_p) end local meta - if minetest.get_node_or_nil(pos) then + if advtrains.is_node_loaded(pos) then meta=minetest.get_meta(pos) end -- cgit v1.2.3