[0.12.26] [kovarex] defines.inventory.furnace_source, _result seem wrong

This subforum contains all the issues which we already resolved.
Post Reply
jheiv
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Mar 14, 2016 1:49 pm
Contact:

[0.12.26] [kovarex] defines.inventory.furnace_source, _result seem wrong

Post by jheiv »

Factorio 0.12.26

data\core\lualib\defines.lua

Code: Select all

...
inventory =
{
  ...
  furnace_source = 1,
  furnace_result = 2,
  ...
}
...
Except, in a furnace, this is not how it behaves.

Put a {stone,steel} furnace down, add coal, smelt a few iron ore into iron plate, then without removing anything, add some copper ore. You should have copper ore in the "input" slot, iron plate in the "output" slot and coal in the "fuel slot".

Then select (hover over) the furnace and enter these commands:

Code: Select all

/c require("defines")
/c for k,v in pairs(game.player.selected.get_inventory(defines.inventory.furnace_source).get_contents()) do game.player.print(k .. ": " .. v) end
/c for k,v in pairs(game.player.selected.get_inventory(defines.inventory.furnace_result).get_contents()) do game.player.print(k .. ": " .. v) end
The furnace_source line displays the amount of coal present. (Should be copper ore)

The furnace_result line displays the amount of copper ore present. (Should be iron plate)

Since it's inconsistent with the wiki, is this a regression?

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12.26] [kovarex] defines.inventory.furnace_source, _result seem wrong

Post by kovarex »

Thanks for the report, it is fixed for 0.12.27 now.

Post Reply

Return to “Resolved Problems and Bugs”