mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-04 16:53:46 +01:00
Remove unnecessary vectory copy
This commit is contained in:
parent
32a5dca904
commit
a3c2e36e01
@ -275,12 +275,12 @@ function mcl_util.bypass_buildable_to(func)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Place above pointed node
|
-- 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 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
|
if olddef_under.buildable_to and not func(oldnode_under.name) then
|
||||||
log("info", "node under is buildable to")
|
log("info", "node under is buildable to")
|
||||||
place_to = vector.copy(under)
|
place_to = under
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.is_protected(place_to, playername) then
|
if minetest.is_protected(place_to, playername) then
|
||||||
|
Loading…
Reference in New Issue
Block a user