mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-06 00:01:05 +01:00
Fix horrible mistake in xpanes
This commit is contained in:
parent
8b4e3c3db0
commit
f5a26a0253
1 changed files with 4 additions and 4 deletions
|
@ -69,16 +69,16 @@ local function update_pane(pos)
|
|||
end
|
||||
|
||||
minetest.register_on_placenode(function(pos, node)
|
||||
if minetest.get_item_group(node, "pane") then
|
||||
update_pane(pos)
|
||||
end
|
||||
if minetest.get_item_group(node.name, "pane") <= 0 then return end
|
||||
update_pane(pos)
|
||||
for i = 0, 3 do
|
||||
local dir = minetest.facedir_to_dir(i)
|
||||
update_pane(vector.add(pos, dir))
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_on_dignode(function(pos)
|
||||
minetest.register_on_dignode(function(pos,node)
|
||||
if minetest.get_item_group(node.name, "pane") <= 0 then return end
|
||||
for i = 0, 3 do
|
||||
local dir = minetest.facedir_to_dir(i)
|
||||
update_pane(vector.add(pos, dir))
|
||||
|
|
Loading…
Reference in a new issue