Skip to content

Commit

Permalink
Fix composter turd crashing the game
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Oct 21, 2024
1 parent 46ecb92 commit ba65330
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion data-final-fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ if settings.startup["py-braided-pipes"].value then
end

for _, entity in pairs(data.raw[entity_prototype] or {}) do
local fluid_boxes = entity.fluid_boxes or {}
local fluid_boxes = {}

for _, fluid_box in pairs(entity.fluid_boxes or {}) do
fluid_boxes[#fluid_boxes + 1] = fluid_box
end

if entity.fluid_box then
fluid_boxes[#fluid_boxes + 1] = entity.fluid_box
Expand Down

0 comments on commit ba65330

Please sign in to comment.