diff options
author | Maciej Kasatkin <mk@realbadangel.pl> | 2012-10-16 01:24:00 +0200 |
---|---|---|
committer | Maciej Kasatkin <mk@realbadangel.pl> | 2012-10-16 01:24:00 +0200 |
commit | aabfca7e9dd2017c32645e4377a0caca08a99256 (patch) | |
tree | 5eb7d838a51bb9d50adfaa1f8a6a05d099bd19f1 | |
parent | 5a9e866d23ade15461cbcf339cfd4a1d58d4bf2d (diff) |
fixes problem when mining sand with laser
-rw-r--r-- | mining_laser_mk1.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mining_laser_mk1.lua b/mining_laser_mk1.lua index 1dcdbfa..65ef128 100644 --- 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(pos1,node,player) end end
\ No newline at end of file |