Module:Block value: Difference between revisions
m Undo revision 1424217 by Magiczocker (talk) |
mNo edit summary |
||
| Line 11: | Line 11: | ||
-- Strip trailing "s" on everything but these | -- Strip trailing "s" on everything but these | ||
if type=="blast resistance" then | |||
else | |||
local keepS = { | local keepS = { | ||
glass = true, | glass = true, | ||
| Line 22: | Line 24: | ||
seagrass = true | seagrass = true | ||
} | } | ||
if | if not keepS[block:match( '%w+$' )] then | ||
block = block:gsub( 's$', '' ) | block = block:gsub( 's$', '' ) | ||
end | end | ||
-- Other transforms | -- Other transforms | ||
block = block | block = block | ||
:gsub( 'wooden', 'wood' ) | :gsub( 'wooden', 'wood' ) | ||