1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-02-04 22:30:16 +01:00

Fix doors

This commit is contained in:
LeMagnesium 2016-11-14 00:27:51 +01:00
parent d40a65244b
commit 56494fbb56
No known key found for this signature in database
GPG Key ID: A54DDB5272C51E8B

View File

@ -173,7 +173,7 @@ function _doors.door_toggle(pos, node, clicker)
--MFF double porte --MFF double porte
local b = string.sub(def.name, -1) local b = string.sub(def.name, -1)
local pos2 = doors.get_pos(pos, dir, old, b) local pos2 = doors.get(pos) --_pos(pos, dir, old, b)
local node = minetest.get_node_or_nil(pos2) local node = minetest.get_node_or_nil(pos2)
if node and string.sub(node.name, 0, -3) == name then if node and string.sub(node.name, 0, -3) == name then
if b ~= string.sub(node.name, -1) then if b ~= string.sub(node.name, -1) then