Skip to content

Commit

Permalink
Fix for items/fluids with an icon but no icon_size
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Nov 26, 2024
1 parent cdbd7fc commit 40835d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boblibrary/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function bobmods.lib.icons_from_item(item)
if item.icons then
icons = item.icons
elseif item.icon then
icons = { { icon = item.icon, icon_size = item.icon_size } }
icons = { { icon = item.icon, icon_size = item.icon_size or 64 } }
else
icons = nil
log(debug.traceback())
Expand Down

0 comments on commit 40835d2

Please sign in to comment.