mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-09 00:43:51 +01:00
Mining lasers: don't dig the node the player is in.
This commit is contained in:
parent
b204090acc
commit
ecb53e9717
@ -107,9 +107,9 @@ local function laser_nodes(pos, dir, player, range)
|
|||||||
local t_dir = get_used_dir(dir)
|
local t_dir = get_used_dir(dir)
|
||||||
local dir_typ = t_dir[1]
|
local dir_typ = t_dir[1]
|
||||||
if t_dir[3] == "+" then
|
if t_dir[3] == "+" then
|
||||||
f_tab = {0, range}
|
f_tab = {1, range}
|
||||||
else
|
else
|
||||||
f_tab = {-range,0}
|
f_tab = {-range, -1}
|
||||||
end
|
end
|
||||||
local d_ch = t_dir[2]
|
local d_ch = t_dir[2]
|
||||||
if dir_typ == "x" then
|
if dir_typ == "x" then
|
||||||
|
Loading…
Reference in New Issue
Block a user