Revert vector-fu.
* Metatable based direct operator maths on vectors are new in minetest 5.5 which means that they are not yet supported in 5.4. Revert back to vector.subtract().bonemeal
parent
8072f2089d
commit
df08a113b7
|
@ -41,7 +41,7 @@ local function apply_bonemeal(pos, schematic, offset)
|
||||||
end
|
end
|
||||||
local minp = vector.offset(pos, -3, 3, -3)
|
local minp = vector.offset(pos, -3, 3, -3)
|
||||||
local maxp = vector.offset(pos, 3, 8, 3)
|
local maxp = vector.offset(pos, 3, 8, 3)
|
||||||
local diff = maxp - minp
|
local diff = vector.subtract(maxp, minp)
|
||||||
local goodnodes = minetest.find_nodes_in_area(minp, maxp, {"air", "group:leaves"})
|
local goodnodes = minetest.find_nodes_in_area(minp, maxp, {"air", "group:leaves"})
|
||||||
if #goodnodes < (diff.x + 1) * (diff.y + 1) * (diff.z + 1) then
|
if #goodnodes < (diff.x + 1) * (diff.y + 1) * (diff.z + 1) then
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue