Make Barrels Great Again


Undo the unnecessary barrel and fluid tanker changes in v0.16.8.

Tweaks
6 years ago
0.16
9

b Does not load.

6 years ago
(updated 6 years ago)

You need to check recipe.results for nil in line 13 in data-updates.lua otherwise this mod fails to load with bob's mods.

like this:

data.raw["fluid-wagon"]["fluid-wagon"].capacity = 75000
data.raw["fluid-wagon"]["fluid-wagon"].weight = 3000
for , recipe in pairs(data.raw["recipe"]) do
if recipe.name:find("fill") then
recipe.energy_required = 1
for
, ingredient in pairs(recipe.ingredients) do
if ingredient.type == "fluid" then
ingredient.amount = 250
end
end
elseif recipe.name:find("empty") then
recipe.energy_required = 1
if recipe ~= nil and recipe.results ~= nil then
for _, result in pairs(recipe.results) do
if result.type == "fluid" then
result.amount = 250
end
end
end
end
end

New response