From defe77f62922db999528c0e88fb2fd961fc00b30 Mon Sep 17 00:00:00 2001 From: badgamernl Date: Tue, 3 Nov 2020 23:24:22 +0100 Subject: [PATCH] Filter out `blueprint` and `blueprint-book` --- modules/data/quickbar.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/data/quickbar.lua b/modules/data/quickbar.lua index e368eef8..8d163866 100644 --- a/modules/data/quickbar.lua +++ b/modules/data/quickbar.lua @@ -39,7 +39,8 @@ Commands.new_command('save-quickbar', 'Saves your Quickbar preset items to file' local filters = {} for i = 1, 100 do local slot = player.get_quick_bar_slot(i) - if slot ~= nil then + -- Need to filter out blueprint and blueprint books because the slot is a LuaItemPrototype and does not contain a way to export blueprint data + if slot ~= nil and slot.name ~= "blueprint" and slot.name ~= "blueprint-book" then filters[i] = slot.name end end