diff options
author | flux <25628292+fluxionary@users.noreply.github.com> | 2023-06-01 15:06:46 -0700 |
---|---|---|
committer | flux <25628292+fluxionary@users.noreply.github.com> | 2023-06-01 15:06:46 -0700 |
commit | 1d548c8ad53fbf931b4d6bd13533eed2e58bcd7e (patch) | |
tree | 49c48eec910351d3dff0103713e0e7616c79a176 /components.lua | |
parent | 78aef919b0ea21eb2b0bedd78b044038f19b23a6 (diff) | |
download | elevator-1d548c8ad53fbf931b4d6bd13533eed2e58bcd7e.tar.gz elevator-1d548c8ad53fbf931b4d6bd13533eed2e58bcd7e.tar.bz2 elevator-1d548c8ad53fbf931b4d6bd13533eed2e58bcd7e.zip |
remove uncraftable 'on' elevator from creative inventory
Diffstat (limited to 'components.lua')
-rw-r--r-- | components.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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. |