summaryrefslogtreecommitdiff
path: root/potato.lua
diff options
context:
space:
mode:
Diffstat (limited to 'potato.lua')
-rw-r--r--potato.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/potato.lua b/potato.lua
index 408e87b..1c7b9e7 100644
--- a/potato.lua
+++ b/potato.lua
@@ -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
})