mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +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
|
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 a new issue