Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz authored Aug 8, 2024
2 parents d5f21ad + 077e200 commit b254a10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions maps/crab_defender/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1125,17 +1125,17 @@ local function deny_building(event)
return false
end

local on_built_entity = function(event)
local on_built_entity = function (event)
local get_score = Score.get_table().score_table
local this = FDT.get()
local entity = event.created_entity
local surface = entity.surface

if not surface or not surface.valid then
if not entity or not entity.valid then
return
end
local surface = entity.surface

if not entity.valid then
if not surface or not surface.valid then
return
end

Expand Down

0 comments on commit b254a10

Please sign in to comment.