Fixed behavior regarding items that are registered with Minetest.
This commit is contained in:
parent
09600f8762
commit
ddb2a05e64
@ -270,10 +270,11 @@ function artisanryui.update_player_inventory(player, taken_stack)
|
||||
local blueprints = artisanryui.last_blueprints_cache[player:get_player_name()]
|
||||
|
||||
blueprints:foreach(function(blueprint)
|
||||
if blueprint:get_result():get_name() == taken_stack:get_name() then
|
||||
if blueprint.decremented_input ~= nil then
|
||||
-- This is an item registered with the default Minetest system.
|
||||
artisanryui.inventory:set_list(player:get_player_name() .. "-input", blueprint.decremented_input.items)
|
||||
return
|
||||
elseif blueprint:get_result():get_name() == taken_stack:get_name() then
|
||||
else
|
||||
local start_row = arrayutil.next_matching_row(input_grid, nil, function(item)
|
||||
return not artisanryutil.is_empty_item(item)
|
||||
end)
|
||||
@ -297,8 +298,9 @@ function artisanryui.update_player_inventory(player, taken_stack)
|
||||
artisanryui.inventory:set_stack(player:get_player_name() .. "-input", inventory_index, current_stack)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return
|
||||
return true
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user