mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-29 14:23:48 +01:00
Categorize redstone stuff in creative tab
parent
c5eeb841a4
commit
d7cb7cb5a8
@ -50,7 +50,7 @@ function set_inv(filter, player)
|
|||||||
table.insert(creative_list, name)
|
table.insert(creative_list, name)
|
||||||
end
|
end
|
||||||
elseif filter == "#redstone" then
|
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)
|
table.insert(creative_list, name)
|
||||||
end
|
end
|
||||||
elseif filter == "#rail" then
|
elseif filter == "#rail" then
|
||||||
|
Loading…
Reference in New Issue
Block a user