summaryrefslogtreecommitdiff
path: root/corn.lua
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-10-18 09:33:30 -0700
committerAuke Kok <sofar@foo-projects.org>2016-10-18 09:33:30 -0700
commit3b6c0e5e782b0dc9935e9c9c363475c733bde92a (patch)
tree06dc292b19da6f6d64311dd0b1e2901c8ac8f37f /corn.lua
parente6421d8d495c4415eeae80c7b1a2ce20d55e443d (diff)
Luacheck cleanups and .luacheckrc
Use `luacheck .` to run luacheck on this mod. Cleaned up luacheck errors.
Diffstat (limited to 'corn.lua')
-rw-r--r--corn.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/corn.lua b/corn.lua
index 71afba2..cd0e272 100644
--- a/corn.lua
+++ b/corn.lua
@@ -128,8 +128,6 @@ minetest.register_abm({
if not minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name == "air" then
return
end
- local meta = minetest.get_meta(pos)
- local water = meta:get_int("crops_water")
minetest.swap_node(pos, { name = "crops:corn_base_2" })
local above = {x = pos.x, y = pos.y + 1, z = pos.z}
minetest.set_node(above , { name = "crops:corn_top_1" })