From 94d20838bcf19e078645ba9c05aee8ffc509afa0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 17 Jan 2017 04:03:43 +0100 Subject: [PATCH] Fix fence gate magically changing the wood --- mods/mcl_fences/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/mcl_fences/init.lua b/mods/mcl_fences/init.lua index 35bf3a7e72..682e0e3b17 100644 --- a/mods/mcl_fences/init.lua +++ b/mods/mcl_fences/init.lua @@ -72,11 +72,11 @@ mcl_fences.register_fence = function(id, fence_name, fence_gate_name, texture, f if state2 == 1 then state2 = 0 minetest.sound_play("door_close", {gain = 0.3, max_hear_distance = 10}) - tmp_node2 = {name="mcl_fences:fence_gate", param1=node.param1, param2=node.param2} + tmp_node2 = {name="mcl_fences:"..id_gate, param1=node.param1, param2=node.param2} else state2 = 1 minetest.sound_play("door_open", {gain = 0.3, max_hear_distance = 10}) - tmp_node2 = {name="mcl_fences:fence_gate_open", param1=node.param1, param2=node.param2} + tmp_node2 = {name="mcl_fences:"..id_gate.."_open", param1=node.param1, param2=node.param2} end update_gate(pos, tmp_node2) meta2:set_int("state", state2)