diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2015-07-05 10:54:18 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2015-07-05 10:54:18 +0100 |
commit | 16cc62a1d4d7c02a84b2ddc1538f5e81404b415c (patch) | |
tree | 529f3a26bdc2d8e71427771e3516a334d9a9d909 /hoes.lua | |
parent | 6e4fa56475b4375655befc61ef868bd39a1f2a5d (diff) |
Code tidy and tweak
Diffstat (limited to 'hoes.lua')
-rw-r--r-- | hoes.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |