Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Nov 13, 2024
1 parent 094d961 commit bcafff8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
10 changes: 2 additions & 8 deletions boblibrary/auto-bottle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ end
local function generate_fill_recipe_icons(fluid, icon)
if fluid.icon then
local iconsize = fluid.icon_size or 64
table.insert(
icon,
{ icon = fluid.icon, icon_size = iconsize, scale = 16.0 / iconsize, shift = { 4, -8 } }
)
table.insert(icon, { icon = fluid.icon, icon_size = iconsize, scale = 16.0 / iconsize, shift = { 4, -8 } })
elseif fluid.icons and util.combine_icons then
icon = util.combine_icons(icon, fluid.icons, { scale = 0.5, shift = { 4, -8 } })
end
Expand All @@ -61,10 +58,7 @@ end
local function generate_empty_recipe_icons(fluid, icon)
if fluid.icon then
local iconsize = fluid.icon_size or 64
table.insert(
icon,
{ icon = fluid.icon, icon_size = iconsize, scale = 16.0 / iconsize, shift = { 7, 8 } }
)
table.insert(icon, { icon = fluid.icon, icon_size = iconsize, scale = 16.0 / iconsize, shift = { 7, 8 } })
elseif fluid.icons and util.combine_icons then
icon = util.combine_icons(icon, fluid.icons, { scale = 0.5, shift = { 7, 8 } })
end
Expand Down
5 changes: 1 addition & 4 deletions bobplates/data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,7 @@ bobmods.lib.create_fluid_canister(data.raw.fluid["alien-poison"])
bobmods.lib.create_fluid_canister(data.raw.fluid["alien-fire"])

for i, recipe in pairs(data.raw.recipe) do
if
string.sub(recipe.name, -7) == "-barrel"
and recipe.category == "crafting-with-fluid"
then
if string.sub(recipe.name, -7) == "-barrel" and recipe.category == "crafting-with-fluid" then
data.raw.recipe[recipe.name].category = "barrelling"
if bobmods.lib.tech.has_recipe_unlock("fluid-handling", recipe.name) then
bobmods.lib.tech.remove_recipe_unlock("fluid-handling", recipe.name)
Expand Down

0 comments on commit bcafff8

Please sign in to comment.