1
0
mirror of https://github.com/Sokomine/cottages.git synced 2025-04-21 11:30:23 +02:00

don't call removed api on update

This commit is contained in:
flux 2022-10-10 12:04:56 -07:00
parent e88660462f
commit 3407c0b6c5
No known key found for this signature in database
GPG Key ID: 9333B27816848A15

View File

@ -1,5 +1,3 @@
local api = cottages.barrel
local rotations = {
3 * 4,
2 * 4,
@ -16,8 +14,5 @@ minetest.register_lbm({
node.name = string.gsub(node.name, "_lying", "")
node.param2 = rotations[node.param2 + 1] or 0
minetest.swap_node(pos, node)
api.update_infotext(pos)
api.update_formspec(pos)
end
})