update fork (again) #8

Merged
chmodsayshello merged 2270 commits from VoxeLibre/VoxeLibre:master into master 2023-01-06 20:13:54 +01:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit 2be75c9628 - Show all commits

View File

@ -213,8 +213,7 @@ minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing)
if pointed_thing.type ~= "node" then return end
local def = minetest.registered_nodes[node.name]
if def then
if def.on_destruct then def.on_destruct(pos) end
minetest.dig_node(pos)
minetest.node_dig(pos,def,puncher)
return true
end
end)

View File

@ -535,12 +535,11 @@ end
function mcl_itemframes.custom_register_lbm(name)
-- FIXME: Item entities can get destroyed by /clearobjects
-- glow frame
-- Item entities can get destroyed by /clearobjects; LBM regenerates them.
minetest.register_lbm({
label = "Respawn item frame item entities",
name = "mcl_itemframes:respawn_entities",
nodenames = { name },
nodenames = {"mcl_itemframes:item_frame","mcl_itemframes:glow_item_frame"},
run_at_every_load = true,
action = function(pos, node)
mcl_itemframes.update_item_entity(pos, node)