Module:Inventory slot: Difference between revisions
Get rid of parenthesis removal, use titles instead. |
Default the mod to vanilla otherwise the mod will be wrong when a default mod is set and this goes through .getParts() the second time. |
||
Line 41: | Line 41: | ||
local aliasParts = p.getParts( aliasFrame ) | local aliasParts = p.getParts( aliasFrame ) | ||
aliasParts.title = frameParts.title or aliasParts.title or '' | aliasParts.title = frameParts.title or aliasParts.title or '' | ||
aliasParts.mod = frameParts.mod or aliasParts.mod or '' | aliasParts.mod = frameParts.mod or aliasParts.mod or 'Minecraft' | ||
aliasParts.num = frameParts.num or aliasParts.num or '' | aliasParts.num = frameParts.num or aliasParts.num or '' | ||
aliasParts.text = frameParts.text or aliasParts.text or '' | aliasParts.text = frameParts.text or aliasParts.text or '' |