From 1d548c8ad53fbf931b4d6bd13533eed2e58bcd7e Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Thu, 1 Jun 2023 15:06:46 -0700 Subject: remove uncraftable 'on' elevator from creative inventory --- components.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components.lua') diff --git a/components.lua b/components.lua index 53f68a8..e564810 100644 --- a/components.lua +++ b/components.lua @@ -205,6 +205,7 @@ for _,mode in ipairs({"on", "off"}) do local on = (mode == "on") local box local cbox + local groups = table.copy(moditems.elevator_groups) if on then -- Active elevators have a ceiling and floor. box = { @@ -219,6 +220,7 @@ for _,mode in ipairs({"on", "off"}) do cbox = table.copy(box) -- But you can enter them from the top. cbox[5] = nil + groups.not_in_creative_inventory = 1 else -- Inactive elevators are almost like shafts. box = { @@ -274,7 +276,7 @@ for _,mode in ipairs({"on", "off"}) do }, use_texture_alpha = "clip", - groups = moditems.elevator_groups, + groups = groups, drop = "elevator:elevator_off", -- Emit a bit of light when active. -- cgit v1.2.3