diff --git a/functions/tick_tack_trap.lua b/functions/tick_tack_trap.lua index cc5fb90b..f487d16d 100644 --- a/functions/tick_tack_trap.lua +++ b/functions/tick_tack_trap.lua @@ -22,7 +22,7 @@ end local function create_flying_text(surface, position, text) if not surface.valid then return end - surface.create_entity({ + surface.create_entity({ name = "flying-text", position = position, text = text, @@ -34,7 +34,7 @@ end local function create_kaboom(surface, position, name) if not surface.valid then return end - local target = position + local target = position local speed = 0.5 if name == "defender-capsule" or name == "destroyer-capsule" or name == "distractor-capsule" then surface.create_entity({ @@ -58,7 +58,7 @@ end local function tick_tack_trap(surface, position) if not surface then return end - if not surface.valid then return end + if not surface.valid then return end if not position then return end if not position.x then return end if not position.y then return end @@ -87,4 +87,4 @@ local function tick_tack_trap(surface, position) end end -return tick_tack_trap \ No newline at end of file +return tick_tack_trap