grinder, recycler fuel fix

This commit is contained in:
rnd1 2016-03-02 22:50:05 +01:00
parent 724767e123
commit e5f2672093
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ local grinder_process = function(pos)
if stack:is_empty() then return end; -- nothing to do
local src_item = stack:to_string();
local pos=string.find(src_item," "); if pos then src_item = string.sub(src_item,1,pos-1) end -- take first word to determine what item was
local p=string.find(src_item," "); if p then src_item = string.sub(src_item,1,p-1) end -- take first word to determine what item was
local def = basic_machines.grinder_recipes[src_item];
if not def then

View File

@ -47,7 +47,7 @@ local recycler_process = function(pos)
if stack:is_empty() then return end; -- nothing to do
local src_item = stack:to_string();
local pos=string.find(src_item," "); if pos then src_item = string.sub(src_item,1,pos-1) end -- take first word to determine what item was
local p=string.find(src_item," "); if p then src_item = string.sub(src_item,1,p-1) end -- take first word to determine what item was
-- look if we already handled this item
local known_recipe=true;