smart_sfinv_creative: fix deregistration

This commit is contained in:
Alexander Weber 2018-09-12 21:39:36 +02:00
parent b20ecfde80
commit 97a8328496

View File

@ -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