mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 11:01:06 +01:00
[mesecons] Fix attempt to call upvalue in internal.lua
This commit is contained in:
parent
d2c65f14a3
commit
1cb060ea08
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,6 @@
|
||||||
|
|
||||||
local equals = vector.equals
|
local equals = vector.equals
|
||||||
local get_node_force = mesecon.get_node_force
|
local get_node_force = mesecon.get_node_force
|
||||||
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
|
local registered_nodes
|
||||||
|
@ -137,7 +136,7 @@ function mesecon.is_receptor(nodename)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
function mesecon.receptor_get_rules(node)
|
local function receptor_get_rules(node)
|
||||||
local receptor = mesecon.get_receptor(node.name)
|
local receptor = mesecon.get_receptor(node.name)
|
||||||
if receptor then
|
if receptor then
|
||||||
local rules = receptor.rules
|
local rules = receptor.rules
|
||||||
|
@ -150,6 +149,7 @@ function mesecon.receptor_get_rules(node)
|
||||||
|
|
||||||
return mesecon.rules.default
|
return mesecon.rules.default
|
||||||
end
|
end
|
||||||
|
mesecon.receptor_get_rules = receptor_get_rules
|
||||||
|
|
||||||
-- Effectors
|
-- Effectors
|
||||||
-- Nodes that can be powered by mesecons
|
-- Nodes that can be powered by mesecons
|
||||||
|
|
Loading…
Reference in a new issue