mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-06 18:20:37 +02:00
Minor fixes for chainsaw
Fixes suggested by ShadowNinja
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user