Differences From
Artifact [42263b381c]:
565 565 if q.quit then
566 566 user:suitSound 'starlit-quit' -- TODO better sound
567 567 end
568 568 end;
569 569 render = function(state, user)
570 570 local body = {kind='vert', w=6; mode='hw', spacing=.5, padding=1 }
571 571 for i, l in ipairs(state.ctx.inv) do
572 - local inv = minetest.get_meta(l.pos):get_inventory()
572 + local inv = core.get_meta(l.pos):get_inventory()
573 573 local w = l.w or 6
574 574 if l.label then
575 575 table.insert(body, {kind = 'hbar'; text = l.label, w=w+.5, h = .5})
576 576 end
577 577 table.insert(body, {kind = 'list';
578 578 w = w, h = inv:get_size(l.id)/w;
579 579 node = l.pos, inv = l.id;