From 97a8328496385b31dbd1729d4addbf8e06ee736e Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Wed, 12 Sep 2018 21:39:36 +0200 Subject: [PATCH] smart_sfinv_creative: fix deregistration --- smart_sfinv_creative/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smart_sfinv_creative/init.lua b/smart_sfinv_creative/init.lua index a8ea00a..5c9c1a8 100644 --- a/smart_sfinv_creative/init.lua +++ b/smart_sfinv_creative/init.lua @@ -50,6 +50,8 @@ minetest.after(0,function() local page = sfinv.pages_unordered[idx] if unregister[page.name] then move_to_end = false + sfinv.pages[page.name] = nil + table.remove(sfinv.pages_unordered, idx) elseif move_to_end then table.insert(pages_to_end, 1, page) sfinv.pages[page.name] = nil