Update to be compatible with appliances mod update.

This commit is contained in:
SFENCE 2022-01-18 17:49:08 +01:00
parent f28ef1e9b1
commit a6f314bc53

View File

@ -74,7 +74,7 @@ minetest.register_abm({
action = function(pos, node)
local node_def = minetest.registered_nodes[node.name]
for _,side in pairs(node_def._generator_connect_sides) do
local side_pos = appliances.get_side_pos(pos, side);
local side_pos = appliances.get_side_pos(pos, node, side);
local side_node = minetest.get_node(side_pos);
if minetest.get_item_group(side_node.name, "power_generator")>0 then
return