Fix insulated mesecon

This commit is contained in:
Jeija
2012-12-10 17:19:30 +01:00
parent 05def1540a
commit d5825f9602
2 changed files with 57 additions and 44 deletions

View File

@ -1,3 +1,12 @@
function insulated_wire_get_rules(node)
local rules = {{x = 1, y = 0, z = 0},
{x =-1, y = 0, z = 0}}
if node.param2 == 1 or node.param2 == 3 then
return mesecon:rotate_rules_right(rules)
end
return rules
end
minetest.register_node("mesecons_insulated:insulated_on", {
drawtype = "nodebox",
description = "insulated mesecons",
@ -73,12 +82,3 @@ minetest.register_craft({
mesecon:add_rules("insulated", {
{x = 1, y = 0, z = 0},
{x =-1, y = 0, z = 0}})
function insulated_wire_get_rules(node)
local rules = {{x = 1, y = 0, z = 0},
{x =-1, y = 0, z = 0}}
if param2 == 1 or param2 == 3 then
return mesecon:rotate_rules_right(rules)
end
return rules
end