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:
5a9e866
)
fixes problem when mining sand with laser
author
Maciej Kasatkin
<mk@realbadangel.pl>
Mon, 15 Oct 2012 23:24:00 +0000
(
01:24
+0200)
committer
Maciej Kasatkin
<mk@realbadangel.pl>
Mon, 15 Oct 2012 23:24:00 +0000
(
01:24
+0200)
mining_laser_mk1.lua
patch
|
blob
|
history
diff --git
a/mining_laser_mk1.lua
b/mining_laser_mk1.lua
index 1dcdbfaf85294495cdb9c32ec09339ea51e8b553..65ef128800925e22e9e027cd9b92b8aae4c78ba4 100644
(file)
--- a/
mining_laser_mk1.lua
+++ b/
mining_laser_mk1.lua
@@
-137,8
+137,13
@@
function lazer_it (pos, node, player,count)
if node.name == "default:lava_flowing" then return end
if node.name == "default:water_source" then minetest.env:remove_node(pos) return end
if node.name == "default:water_flowing" then minetest.env:remove_node(pos) return end
+ pos1={}
+ pos1.x=math.floor(pos.x)
+ pos1.y=math.floor(pos.y)
+ pos1.z=math.floor(pos.z)
+
if player then
- minetest.node_dig(pos,node,player)
+ minetest.node_dig(pos
1
,node,player)
end
end
\ No newline at end of file