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

fix nil refs caused by a renamed function

This commit is contained in:
Vanessa Ezekowitz
2013-11-08 04:49:32 -05:00
parent c8be033292
commit 0063598f22
4 changed files with 22 additions and 20 deletions

View File

@ -59,17 +59,6 @@ function homedecor.table_copy(t)
return nt
end
-- protection wrapper for 6d stuff
function homedecor.protect_and_rotate(itemstack, placer, pointed_thing)
if not homedecor.node_is_owned(pointed_thing.under, placer)
and not homedecor.node_is_owned(pointed_thing.above, placer) then
local keys=placer:get_player_control()
minetest.rotate_and_place(itemstack, placer, pointed_thing,
homedecor.expect_infinite_stacks, {invert_wall = keys.sneak})
end
return itemstack
end
-- load various other components