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 /potato.lua | |
parent | e6421d8d495c4415eeae80c7b1a2ce20d55e443d (diff) |
Luacheck cleanups and .luacheckrc
Use `luacheck .` to run luacheck on this mod.
Cleaned up luacheck errors.
Diffstat (limited to 'potato.lua')
-rw-r--r-- | potato.lua | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -160,11 +160,9 @@ minetest.register_abm({ return end local meta = minetest.get_meta(pos) - local water = meta:get_int("crops_water") local damage = meta:get_int("crops_damage") - local below = { x = pos.x, y = pos.y - 1, z = pos.z} minetest.set_node(below, { name = "crops:soil_with_potatoes" }) - local meta = minetest.get_meta(below) + meta = minetest.get_meta(below) meta:set_int("crops_damage", damage) end }) |