mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-18 00:51:06 +01:00
Add minimal itemframe LBM for compatability
This commit is contained in:
parent
d8ff91e089
commit
35b1f72559
1 changed files with 11 additions and 1 deletions
|
@ -143,4 +143,14 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("itemframes:frame", "mcl_itemframes:item_frame")
|
minetest.register_lbm({
|
||||||
|
label = "Update legacy item frames",
|
||||||
|
name = "mcl_itemframes:update_legacy_item_frames",
|
||||||
|
nodenames = {"itemframes:frame"},
|
||||||
|
action = function(pos, node)
|
||||||
|
-- Swap legacy node, then respawn entity
|
||||||
|
node.name = "mcl_itemframes:item_frame"
|
||||||
|
minetest.swap_node(pos, node)
|
||||||
|
update_item(pos, node)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue