mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Better fix for creative digging drops, and fix the itemframes LBM.
This commit is contained in:
parent
4c94bee22f
commit
2be75c9628
2 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue