mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-09-12 00:56:53 +02:00
Better fix for creative digging drops, and fix the itemframes LBM.
This commit is contained in:
parent
4c94bee22f
commit
2be75c9628
@ -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 New Issue
Block a user