mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-12-27 03:00:22 +01:00
Fix double space
This commit is contained in:
parent
85aea72376
commit
5ec13858bc
@ -136,7 +136,7 @@ end
|
|||||||
-- The amount of items offered per shape can be configured
|
-- The amount of items offered per shape can be configured
|
||||||
circular_saw.on_receive_fields = function(pos, formname, fields, sender)
|
circular_saw.on_receive_fields = function(pos, formname, fields, sender)
|
||||||
local meta = minetest.env:get_meta(pos);
|
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(fields.max_offered and tonumber(fields.max_offered) > 0 and tonumber(fields.max_offered) < 99) then
|
||||||
meta:set_string("max_offered", fields.max_offered);
|
meta:set_string("max_offered", fields.max_offered);
|
||||||
circular_saw.update_inventory(pos, 0); -- update to show the correct number of items
|
circular_saw.update_inventory(pos, 0); -- update to show the correct number of items
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user