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
|
if pointed_thing.type ~= "node" then return end
|
||||||
local def = minetest.registered_nodes[node.name]
|
local def = minetest.registered_nodes[node.name]
|
||||||
if def then
|
if def then
|
||||||
if def.on_destruct then def.on_destruct(pos) end
|
minetest.node_dig(pos,def,puncher)
|
||||||
minetest.dig_node(pos)
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -535,12 +535,11 @@ end
|
||||||
|
|
||||||
function mcl_itemframes.custom_register_lbm(name)
|
function mcl_itemframes.custom_register_lbm(name)
|
||||||
|
|
||||||
-- FIXME: Item entities can get destroyed by /clearobjects
|
-- Item entities can get destroyed by /clearobjects; LBM regenerates them.
|
||||||
-- glow frame
|
|
||||||
minetest.register_lbm({
|
minetest.register_lbm({
|
||||||
label = "Respawn item frame item entities",
|
label = "Respawn item frame item entities",
|
||||||
name = "mcl_itemframes:respawn_entities",
|
name = "mcl_itemframes:respawn_entities",
|
||||||
nodenames = { name },
|
nodenames = {"mcl_itemframes:item_frame","mcl_itemframes:glow_item_frame"},
|
||||||
run_at_every_load = true,
|
run_at_every_load = true,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
mcl_itemframes.update_item_entity(pos, node)
|
mcl_itemframes.update_item_entity(pos, node)
|
||||||
|
|
Loading…
Reference in New Issue