mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-19 21:44:12 +02:00
Categorize redstone stuff in creative tab
This commit is contained in:
parent
c5eeb841a4
commit
d7cb7cb5a8
@ -50,7 +50,7 @@ function set_inv(filter, player)
|
||||
table.insert(creative_list, name)
|
||||
end
|
||||
elseif filter == "#redstone" then
|
||||
if string.find(string.lower(def.name), "redstone") or string.find(string.lower(def.description), "redstone") then
|
||||
if def.mesecons or def.groups.mesecon or def.groups.mesecon_conductor_craftable or def.groups.mesecon_effecor_off then
|
||||
table.insert(creative_list, name)
|
||||
end
|
||||
elseif filter == "#rail" then
|
||||
|
Loading…
Reference in New Issue
Block a user