summaryrefslogtreecommitdiff
path: root/hoes.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-07-05 10:54:18 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2015-07-05 10:54:18 +0100
commit16cc62a1d4d7c02a84b2ddc1538f5e81404b415c (patch)
tree529f3a26bdc2d8e71427771e3516a334d9a9d909 /hoes.lua
parent6e4fa56475b4375655befc61ef868bd39a1f2a5d (diff)
Code tidy and tweak
Diffstat (limited to 'hoes.lua')
-rw-r--r--hoes.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/hoes.lua b/hoes.lua
index cd00f5e..3a2d107 100644
--- a/hoes.lua
+++ b/hoes.lua
@@ -55,7 +55,7 @@ function farming.hoe_on_use(itemstack, user, pointed_thing, uses)
return
end
- local p = {x=pt.under.x, y=pt.under.y+1, z=pt.under.z}
+ local p = {x = pt.under.x, y = pt.under.y + 1, z = pt.under.z}
local above = minetest.get_node(p)
-- return if any of the nodes is not registered
@@ -75,9 +75,9 @@ function farming.hoe_on_use(itemstack, user, pointed_thing, uses)
end
-- turn the node into soil, wear out item and play sound
- minetest.set_node(pt.under, {name="farming:soil"})
- minetest.sound_play("default_dig_crumbly", {pos = pt.under, gain = 0.5,})
- itemstack:add_wear(65535/(uses-1))
+ minetest.set_node(pt.under, {name = "farming:soil"})
+ minetest.sound_play("default_dig_crumbly", {pos = pt.under, gain = 0.5})
+ itemstack:add_wear(65535/(uses - 1))
return itemstack
end
@@ -147,4 +147,4 @@ farming.register_hoe(":farming:hoe_diamond", {
{"", "group:stick"},
{"", "group:stick"},
}
-})
+}) \ No newline at end of file