From aa9644d9f5ccc101139bdb736aa5c4fad888d111 Mon Sep 17 00:00:00 2001 From: Calinou Date: Thu, 11 Jul 2013 22:02:15 +0200 Subject: [PATCH] Fix --- circular_saw.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circular_saw.lua b/circular_saw.lua index 144b056..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 tonumber(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