From 19dddae25cbf429e3fe5d26302ab55c56549e3fc Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 30 Mar 2021 13:53:19 +0100 Subject: [PATCH] fix random teleport coords (doh!) --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 27fb3cb..1437878 100644 --- a/init.lua +++ b/init.lua @@ -350,8 +350,8 @@ local lb_teleport = function(pos, digger, def) local y_range = def[3] or 5 pos.x = pos.x + math.random(-xz_range, xz_range) - pos.x = pos.y + math.random(-y_range, y_range) - pos.x = pos.z + math.random(-xz_range, xz_range) + pos.y = pos.y + math.random(-y_range, y_range) + pos.z = pos.z + math.random(-xz_range, xz_range) effect(pos, 25, "tnt_smoke.png", 8, 8, 1, -10, 0)