1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-15 04:10:18 +02:00

use the minetest provided table copy function

This commit is contained in:
Tim
2015-08-16 17:24:08 +02:00
parent 45aef81f55
commit d2824c10e7
2 changed files with 1 additions and 14 deletions

View File

@ -19,19 +19,6 @@ homedecor = {
expect_infinite_stacks = minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory")
}
--table copy
function homedecor.table_copy(t)
local nt = { };
for k, v in pairs(t) do
if type(v) == "table" then
nt[k] = homedecor.table_copy(v)
else
nt[k] = v
end
end
return nt
end
-- Determine if the item being pointed at is the underside of a node (e.g a ceiling)
function homedecor.find_ceiling(itemstack, placer, pointed_thing)
-- most of this is copied from the rotate-and-place function in builtin