[2.0.66] Icons do not scale correctly in map view
Posted: Thu Sep 11, 2025 12:18 pm
This was discovered while fixing this issue. The scale defaults to (expected_icon_size / 2) / icon_size which makes the icons too large for the map view.
expected_icon_size defaults to 64 for recipes but the correct scale appears only when expected_icon_size is set to 32 for the recipe.
expected_icon_size = 32, icon_size = 64, scale = 0.25 icon_size = 64, scale = nil (default equation to (64 / 2) / 64 = 0.5) This also happens with vanilla items/pure vanilla gameplay:
(you can see the overlap in the science packs) This could be intended to make the items bigger in map view as they would be too small otherwise, I'm not sure though.
expected_icon_size defaults to 64 for recipes but the correct scale appears only when expected_icon_size is set to 32 for the recipe.
expected_icon_size = 32, icon_size = 64, scale = 0.25 icon_size = 64, scale = nil (default equation to (64 / 2) / 64 = 0.5) This also happens with vanilla items/pure vanilla gameplay:
(you can see the overlap in the science packs) This could be intended to make the items bigger in map view as they would be too small otherwise, I'm not sure though.