Add different boat types

This commit is contained in:
Wuzzy 2017-01-16 19:10:18 +01:00
parent f2b5d5a5ad
commit 22d8aa7a41
2 changed files with 37 additions and 31 deletions

View file

@ -54,7 +54,7 @@ function set_inv(filter, player)
table.insert(creative_list, name)
end
elseif filter == "#rail" then
if string.find(string.lower(def.name), "rail") or string.find(string.lower(def.description), "rail") or string.find(string.lower(def.name), "cart") or string.find(string.lower(def.description), "cart") or string.find(string.lower(def.description), "boat") then
if def.groups.rail or def.groups.cart or def.groups.boat then
table.insert(creative_list, name)
end
elseif filter == "#misc" then