We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94442e8 commit 1225e41Copy full SHA for 1225e41
compat-chests.lua
@@ -52,14 +52,13 @@ if minetest.get_modpath("default") then
52
end
53
local pn = player:get_player_name()
54
local chest_open = default.chest.open_chests[pn]
55
- if not chest_open then
+ if not chest_open or not chest_open.pos then
56
-- chest already closed before formspec
57
return
58
59
local pos = chest_open.pos
60
- local chest = pos and minetest.get_node(pos)
61
- local is_pipeworks_chest = chest and pipeworks.chests[chest]
62
- if is_pipeworks_chest and pipeworks.may_configure(pos, player) then
+ local node = minetest.get_node(pos)
+ if pipeworks.chests[node.name] and pipeworks.may_configure(pos, player) then
63
-- Pipeworks Switch
64
fs_helpers.on_receive_fields(pos, fields)
65
minetest.show_formspec(pn,
0 commit comments