From eb7c8371ac07c8c3de3bb4abea1f1910e8f873e5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 18 Feb 2019 21:58:31 +0100 Subject: [PATCH] Respawn itemframe entities on load --- mods/ITEMS/mcl_itemframes/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mods/ITEMS/mcl_itemframes/init.lua b/mods/ITEMS/mcl_itemframes/init.lua index 14170e3b29..d4d39ab8ca 100644 --- a/mods/ITEMS/mcl_itemframes/init.lua +++ b/mods/ITEMS/mcl_itemframes/init.lua @@ -221,4 +221,14 @@ minetest.register_lbm({ end, }) +minetest.register_lbm({ + label = "Respawn item frame item entities", + name = "mcl_itemframes:respawn_entities", + nodenames = {"mcl_itemframes:item_frame"}, + run_at_every_load = true, + action = function(pos, node) + update_item_entity(pos, node) + end, +}) + minetest.register_alias("itemframes:frame", "mcl_itemframes:item_frame")