Remove unnecessary vectory copy

This commit is contained in:
teknomunk 2024-09-09 07:02:21 -05:00
parent 9f9c590c8d
commit ed373e9f37
1 changed files with 2 additions and 2 deletions

View File

@ -275,12 +275,12 @@ function mcl_util.bypass_buildable_to(func)
end
-- Place above pointed node
local place_to = vector.copy(above)
local place_to = above
-- If node under is buildable_to, check for callback result and place into it instead
if olddef_under.buildable_to and not func(oldnode_under.name) then
log("info", "node under is buildable to")
place_to = vector.copy(under)
place_to = under
end
if minetest.is_protected(place_to, playername) then