mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-11-19 23:43:44 +01:00
fix random teleport coords (doh!)
This commit is contained in:
parent
d6ba4e596d
commit
19dddae25c
4
init.lua
4
init.lua
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user