aboutsummaryrefslogtreecommitdiff
path: root/circular_saw.lua
diff options
context:
space:
mode:
authorCalinou <calinou9999spam@gmail.com>2013-08-01 10:58:34 +0200
committerCalinou <calinou9999spam@gmail.com>2013-08-01 10:58:34 +0200
commit2839770413d7cfbd730974629fe148390a9349f7 (patch)
treec8855ac9930f8cbef4705ca9486bca45ec77e249 /circular_saw.lua
parent290593619a7f57fa48a6b28771173d190eb12691 (diff)
parentaa9644d9f5ccc101139bdb736aa5c4fad888d111 (diff)
downloadmoreblocks-2839770413d7cfbd730974629fe148390a9349f7.tar.gz
moreblocks-2839770413d7cfbd730974629fe148390a9349f7.tar.bz2
moreblocks-2839770413d7cfbd730974629fe148390a9349f7.zip
Merge branch 'master' of https://github.com/Calinou/moreblocks
Diffstat (limited to 'circular_saw.lua')
-rw-r--r--circular_saw.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/circular_saw.lua b/circular_saw.lua
index 1e385c9..50068e8 100644
--- a/circular_saw.lua
+++ b/circular_saw.lua
@@ -136,7 +136,7 @@ end
-- The amount of items offered per shape can be configured
circular_saw.on_receive_fields = function(pos, formname, fields, sender)
local meta = minetest.env:get_meta(pos);
- if(fields.max_offered and tonumber(fields.max_offered) > 0 and tonumber(fields.max_offered) < 99) then
+ if tonumber(fields.max_offered) and tonumber(fields.max_offered) > 0 and tonumber(fields.max_offered) < 99 then
meta:set_string("max_offered", fields.max_offered);
circular_saw.update_inventory(pos, 0); -- update to show the correct number of items
end