1
0
Fork 0

Fix end spike wrong vector.add usage

This commit is contained in:
cora 2022-11-12 14:04:50 +01:00
parent 36a6a353a3
commit 00541cbfb8
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ mcl_structures.register_structure("end_spike",{
place_func = function(pos,def,pr) place_func = function(pos,def,pr)
local d = pr:next(6,12) local d = pr:next(6,12)
local h = d * pr:next(4,6) local h = d * pr:next(4,6)
local p1 = vector.add(pos,-d/2,0,-d/2) local p1 = vector.offset(pos, -d / 2, 0, -d / 2)
local p2 = vector.add(pos,d/2,h+d,d/2) local p2 = vector.offset(pos, d / 2, h + d, d / 2)
minetest.emerge_area(p1, p2, function(blockpos, action, calls_remaining, param) minetest.emerge_area(p1, p2, function(blockpos, action, calls_remaining, param)
if calls_remaining ~= 0 then return end if calls_remaining ~= 0 then return end
local s = make_endspike(pos,d,h) local s = make_endspike(pos,d,h)