mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Attemp to fix #1513
This commit is contained in:
parent
a733eb8e0c
commit
f5f6e232cc
1 changed files with 4 additions and 2 deletions
|
@ -52,8 +52,10 @@ local get_node_force = mesecon.get_node_force
|
||||||
local receptor_get_rules = mesecon.receptor_get_rules
|
local receptor_get_rules = mesecon.receptor_get_rules
|
||||||
local invertRule = mesecon.invertRule
|
local invertRule = mesecon.invertRule
|
||||||
local copy, insert = table.copy, table.insert
|
local copy, insert = table.copy, table.insert
|
||||||
local registered_nodes = minetest.registered_nodes
|
local registered_nodes
|
||||||
|
minetest.register_on_mods_loaded(function()
|
||||||
|
registered_nodes = minetest.registered_nodes
|
||||||
|
end)
|
||||||
-- General
|
-- General
|
||||||
function mesecon.get_effector(nodename)
|
function mesecon.get_effector(nodename)
|
||||||
if registered_nodes[nodename]
|
if registered_nodes[nodename]
|
||||||
|
|
Loading…
Reference in a new issue