1
0
Fork 0

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
kabou 2022-05-02 10:44:26 +02:00
parent 8072f2089d
commit df08a113b7
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ local function apply_bonemeal(pos, schematic, offset)
end
local minp = vector.offset(pos, -3, 3, -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"})
if #goodnodes < (diff.x + 1) * (diff.y + 1) * (diff.z + 1) then
return false