mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-04-11 11:21:54 +02:00
fish_defender >> entity valid check
This commit is contained in:
parent
e7a71910d4
commit
3751c127e9
@ -1210,6 +1210,7 @@ end
|
||||
|
||||
local function on_built_entity(event)
|
||||
local entity = event.created_entity
|
||||
if not entity.valid then return end
|
||||
if global.entity_limits[entity.name] then
|
||||
local surface = entity.surface
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user