diff options
author | Auke Kok <sofar@foo-projects.org> | 2016-10-18 09:33:30 -0700 |
---|---|---|
committer | Auke Kok <sofar@foo-projects.org> | 2016-10-18 09:33:30 -0700 |
commit | 3b6c0e5e782b0dc9935e9c9c363475c733bde92a (patch) | |
tree | 06dc292b19da6f6d64311dd0b1e2901c8ac8f37f /tools.lua | |
parent | e6421d8d495c4415eeae80c7b1a2ce20d55e443d (diff) |
Luacheck cleanups and .luacheckrc
Use `luacheck .` to run luacheck on this mod.
Cleaned up luacheck errors.
Diffstat (limited to 'tools.lua')
-rw-r--r-- | tools.lua | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -31,19 +31,19 @@ minetest.register_tool("crops:watering_can", { if minetest.get_item_group(minetest.get_node(pos).name, "water") >= 3 then if wear ~= 1 then minetest.sound_play("crops_watercan_entering", {pos=pos, gain=0.8}) - minetest.after(math.random()/2, function(pos) + minetest.after(math.random()/2, function(p) if math.random(2) == 1 then - minetest.sound_play("crops_watercan_splash_quiet", {pos=pos, gain=0.1}) + minetest.sound_play("crops_watercan_splash_quiet", {pos=p, gain=0.1}) end if math.random(3) == 1 then - minetest.after(math.random()/2, function(pos) - minetest.sound_play("crops_watercan_splash_small", {pos=pos, gain=0.7}) - end, pos) + minetest.after(math.random()/2, function(pp) + minetest.sound_play("crops_watercan_splash_small", {pos=pp, gain=0.7}) + end, p) end if math.random(3) == 1 then - minetest.after(math.random()/2, function(pos) - minetest.sound_play("crops_watercan_splash_big", {pos=pos, gain=0.7}) - end, pos) + minetest.after(math.random()/2, function(pp) + minetest.sound_play("crops_watercan_splash_big", {pos=pp, gain=0.7}) + end, p) end end, pos) itemstack:set_wear(1) |