1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
|
-- end
minetest.get_meta(npos):from_table(origmeta)
return npos, true
else
local nstack = ItemStack(ty)
nstack:get_meta():from_table(origmeta)
local leftover = ctx.caster:get_inventory():add_item('main',nstack)
if leftover and not leftover.is_empty() then
minetest.add_item(ctx.caster:get_pos(), leftover)
end
end
end
else
return false
end
|
|
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
|
-- end
minetest.get_meta(npos):from_table(origmeta)
return npos, true
else
local nstack = ItemStack(ty)
nstack:get_meta():from_table(origmeta)
local leftover = ctx.caster:get_inventory():add_item('main',nstack)
if leftover and not leftover:is_empty() then
minetest.add_item(ctx.caster:get_pos(), leftover)
end
end
end
else
return false
end
|