Skip to content

Commit

Permalink
Don't render fish on server restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielv123 committed Apr 14, 2024
1 parent 8c90fe3 commit b2a3958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/map/dump_entities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
]]

local clusterio_api = require("modules/clusterio/api")
local ignored_entities = require("modules/gridworld/map/ignored_entities")

local function dump_entities(entities, removed_entities)
-- Do removals first, then additions afterwards to avoid issues with entities being removed and added in the same cycle
Expand All @@ -18,7 +19,7 @@ local function dump_entities(entities, removed_entities)
local map_data = {}
-- Get entities in the area
for _, entity in pairs(tasks) do
if entity == nil or entity.valid == false then
if entity == nil or entity.valid == false or ignored_entities[entity.type] then
goto continue
end
local position = entity.position
Expand Down

0 comments on commit b2a3958

Please sign in to comment.