From 25d2c351012f02f124fda7195307a37fb2ef0d4a Mon Sep 17 00:00:00 2001 From: Phvli Date: Sat, 17 May 2014 00:32:11 +0300 Subject: [PATCH] Minor fixes for chainsaw Fixes suggested by ShadowNinja --- technic/tools/chainsaw.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/technic/tools/chainsaw.lua b/technic/tools/chainsaw.lua index 0d11488..a892466 100644 --- a/technic/tools/chainsaw.lua +++ b/technic/tools/chainsaw.lua @@ -204,12 +204,12 @@ local function recursive_dig(pos, remaining_charge, player) end local function get_drop_pos(pos) - local p + local p, node repeat p = { - x = pos.x + math.random() * 6 - 3, + x = pos.x + math.random(-3, 3), y = pos.y - 1, - z = pos.z + math.random() * 6 - 3 + z = pos.z + math.random(-3, 3) } repeat p.y = p.y + 1