Skip to content

Commit def8432

Browse files
committed
Fixed bug in angelsmods.functions.make_void #1256
1 parent ed2bfd5 commit def8432

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

angelsrefining/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Date: ???
44
Bugfixes:
55
- Fixed some catalyst sorting recipes showing the wrong name (1245)
66
- Improved migration functions (1248)
7+
- Fixed error in angelsmods.functions.make_void when fluid icon has no scale set (1256)
78
---------------------------------------------------------------------------------------------------
89
Version: 2.0.2
910
Date: 18.01.26

angelsrefining/prototypes/angels-functions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ function angelsmods.functions.make_void(fluid_name, void_category, void_amount)
17911791
table.insert(recipe.icons, {
17921792
icon = iconLayer.icon,
17931793
icon_size = iconLayer.icon_size or nil,
1794-
scale = (iconLayer.scale or recipe.icon_size / (iconLayer.icon_size or 32)) * 0.5,
1794+
scale = (iconLayer.scale or 32 / (iconLayer.icon_size or 64)) * 0.5,
17951795
shift = {
17961796
((iconLayer.shift or {})[1] or (iconLayer.shift or {})["x"] or 0) * 0.5 - 8,
17971797
((iconLayer.shift or {})[2] or (iconLayer.shift or {})["y"] or 0) * 0.5 - 8,

0 commit comments

Comments
 (0)