Skip to content

Commit

Permalink
Fixed error in product edition
Browse files Browse the repository at this point in the history
Fixed error in product edition
  • Loading branch information
Helfima committed Jun 3, 2018
1 parent 13c33fc commit 57f11c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edition/ProductEdition.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function ProductEdition.methods:onUpdate(event, action, item, item2, item3)
for _, element in pairs(block.products) do
if element.name == item2 then
product = element
if block.input[product.name] then
if block.input ~= nil and block.input[product.name] then
product_count = block.input[product.name]
else
product_count = product.count
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{
"name": "helmod",
"version": "0.7.10",
"version": "0.7.11",
"title": "Helmod: assistant for planning your base.",
"author": "Helfima",
"contact": "Helfima",
Expand Down

0 comments on commit 57f11c2

Please sign in to comment.