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:
11
init.lua
11
init.lua
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user