projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b204090
)
Mining lasers: don't dig the node the player is in.
author
Novatux
<nathanael.courant@laposte.net>
Sun, 18 May 2014 14:11:06 +0000
(16:11 +0200)
committer
Novatux
<nathanael.courant@laposte.net>
Sun, 18 May 2014 14:11:06 +0000
(16:11 +0200)
technic/tools/mining_lasers.lua
patch
|
blob
|
history
diff --git
a/technic/tools/mining_lasers.lua
b/technic/tools/mining_lasers.lua
index e06c7bfb961b14202f5c53c522a5ca25cd90edca..03286f436475e829de9fa569735d790d88f351fa 100644
(file)
--- a/
technic/tools/mining_lasers.lua
+++ b/
technic/tools/mining_lasers.lua
@@
-107,9
+107,9
@@
local function laser_nodes(pos, dir, player, range)
local t_dir = get_used_dir(dir)
local dir_typ = t_dir[1]
if t_dir[3] == "+" then
- f_tab = {
0
, range}
+ f_tab = {
1
, range}
else
- f_tab = {-range,
0
}
+ f_tab = {-range,
-1
}
end
local d_ch = t_dir[2]
if dir_typ == "x" then