Code: Select all
...
local contained_fluid = entity.fluidbox[1] or false
...
-- substitution
...
-- Reinsert in the new entity the fluid of the destroyed entity
if contained_fluid then
rotated_entity.insert_fluid(contained_fluid)
end
...
Code: Select all
...
local contained_fluid = entity.fluidbox[1] or false
...
-- substitution
...
-- Reinsert in the new entity the fluid of the destroyed entity
if contained_fluid then
rotated_entity.insert_fluid(contained_fluid)
end
...