Remove uneeded functionization

master
benrob0329 2019-12-12 17:44:15 -05:00
parent 767079e76a
commit b29f7c0f99
2 changed files with 5 additions and 6 deletions

View File

@ -33,8 +33,12 @@ function ikea.warehouse.place_rack_contents(vm, pos, rotate)
local box_node = {name = "furniture:box"}
local furniture_node = {name = ikea.furniture.registered_kits[furniture_id].furniture_node, param2 = rotation}
local filler_node = {name = "ikea:invisible_wall"}
local schem = ikea.warehouse.make_rack_content_schem(furniture_node, box_node)
local schem = {
size = {x = 1, y = 7, z = 1},
data = {box_node, box_node, furniture_node, filler_node, box_node, box_node, box_node},
}
minetest.place_schematic_on_vmanip(vm, local_pos, schem, 0, true, "")
local box_positions = {

View File

@ -9,11 +9,6 @@ local rack_light_node = {name = "warehouse:light", param2 = 1}
local aisle_light_node = {name = "warehouse:light", param2 = 0}
local row_sign_node = {name = "warehouse:row_sign"}
-- Functions
function ikea.warehouse.make_rack_content_schem(furniture, box)
return {size = {x = 1, y = 7, z = 1}, data = {box, box, furniture, filler_node, box, box, box}}
end
local function place_racks(schem, x, z, num)
for i = 0, num - 1 do
local x2 = x + (4 * i)