Code: Select all
--blueprints and books put at top of inventory - maybe anyway
data.raw["blueprint"]["blueprint"].order = "0"
data.raw["blueprint-book"]["blueprint-book"].order = "0"
data.raw["deconstruction-item"]["deconstruction-planner"].order = "0"
data.raw["upgrade-item"]["upgrade-planner"].order = "0"
-- since the above 4 are subgroup "tool" in item.lua & demo-item.lua, trying this also
data.raw["item-subgroup"]["tool"].order = "0"
My theory is either some other stage of the prototype heirarchy has precedence regarding item order, or, hmm, I dunno, I guess I have no other theories. Oh, right, the other theory is that I dunno what I'm doing.
Regardless, if there's something fundamentally wrong with my code up above, or with my understanding of how 'order' is supposed to work, or if you have suggestions, please let me know.