Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions env/src/lib/serialize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1248,11 +1248,12 @@ global.utils.serialize_entity = function(entity)

-- Add the current research to the lab
if entity.name == "lab" then
if game.players[1].force.current_research ~= nil then
serialized.research = game.players[1].force.current_research.name
else
serialized.research = nil
end
-- fix(#150): to fix bugs that lab is not shown after researching some technologies
-- if game.players[1].force.current_research ~= nil then
-- serialized.research = game.players[1].force.current_research.name
-- else
-- serialized.research = nil
-- end
end

-- Add input and output locations if the entity is a offshore pump
Expand Down