mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-24 03:47:58 +02:00
Merge branch 'develop' into develop
This commit is contained in:
commit
b254a10a9e
@ -1125,20 +1125,20 @@ local function deny_building(event)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local on_built_entity = function(event)
|
local on_built_entity = function (event)
|
||||||
local get_score = Score.get_table().score_table
|
local get_score = Score.get_table().score_table
|
||||||
local this = FDT.get()
|
local this = FDT.get()
|
||||||
local entity = event.created_entity
|
local entity = event.created_entity
|
||||||
|
|
||||||
|
if not entity or not entity.valid then
|
||||||
|
return
|
||||||
|
end
|
||||||
local surface = entity.surface
|
local surface = entity.surface
|
||||||
|
|
||||||
if not surface or not surface.valid then
|
if not surface or not surface.valid then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if not entity.valid then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if deny_building(event) then
|
if deny_building(event) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user