Minor fixes for chainsaw

Fixes suggested by ShadowNinja
This commit is contained in:
Phvli
2014-05-17 00:32:11 +03:00
parent 40308ad123
commit 25d2c35101

View File

@ -204,12 +204,12 @@ local function recursive_dig(pos, remaining_charge, player)
end end
local function get_drop_pos(pos) local function get_drop_pos(pos)
local p local p, node
repeat repeat
p = { p = {
x = pos.x + math.random() * 6 - 3, x = pos.x + math.random(-3, 3),
y = pos.y - 1, y = pos.y - 1,
z = pos.z + math.random() * 6 - 3 z = pos.z + math.random(-3, 3)
} }
repeat repeat
p.y = p.y + 1 p.y = p.y + 1