fix random teleport coords (doh!)

This commit is contained in:
tenplus1 2021-03-30 13:53:19 +01:00
parent d6ba4e596d
commit 19dddae25c

@ -350,8 +350,8 @@ local lb_teleport = function(pos, digger, def)
local y_range = def[3] or 5 local y_range = def[3] or 5
pos.x = pos.x + math.random(-xz_range, xz_range) pos.x = pos.x + math.random(-xz_range, xz_range)
pos.x = pos.y + math.random(-y_range, y_range) pos.y = pos.y + math.random(-y_range, y_range)
pos.x = pos.z + math.random(-xz_range, xz_range) pos.z = pos.z + math.random(-xz_range, xz_range)
effect(pos, 25, "tnt_smoke.png", 8, 8, 1, -10, 0) effect(pos, 25, "tnt_smoke.png", 8, 8, 1, -10, 0)