summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--technic/tools/planter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/tools/planter.lua b/technic/tools/planter.lua
index b8a4f67..c5a22ba 100644
--- a/technic/tools/planter.lua
+++ b/technic/tools/planter.lua
@@ -90,7 +90,7 @@ local function work_on_soil(itemstack, user, pointed_thing)
local player_name = user:get_player_name()
local inv = user:get_inventory()
- if not inv:contains_item("main", ItemStack({name=meta.selected, count = 2*offset+1})) then
+ if not inv:contains_item("main", ItemStack({name=meta.selected, count = offset + 1})) then
minetest.chat_send_player(player_name, S("Not enough " .. meta.selected .. " to continue!"))
return itemstack
end