Module:Crafting

Revision as of 15:04, 10 November 2018 by Kroppeb (talk | contribs) (Created page with "p = {} function p.Grid( f ) local args = f.args if #args == 0 then args = f:getParent().args end return require(InventorySlot).Call(args, 3, 3) end function p.Cel...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
p = {}

function p.Grid( f )
	local args = f.args
	if #args == 0 then
		args = f:getParent().args
	end

	return require([[InventorySlot]]).Call(args, 3, 3)
end

function p.Cell( f )
	local args = f.args
	if #args == 0 then
		args = f:getParent().args
	end

	return require([[InventorySlot]]).Call(args, 1, 1)
end

function p.Hopper( f )
	local args = f.args
	if #args == 0 then
		args = f:getParent().args
	end

	return require([[InventorySlot]]).Call(args, 5, 1)
end

return p