From 73edbf6b8ca8daf31f6ec768a2475d3c01a50028 Mon Sep 17 00:00:00 2001 From: hanakocz Date: Thu, 2 Nov 2023 05:50:01 +0100 Subject: [PATCH] ...and missing token --- maps/journey/main.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maps/journey/main.lua b/maps/journey/main.lua index 0d860352..21491166 100644 --- a/maps/journey/main.lua +++ b/maps/journey/main.lua @@ -39,6 +39,15 @@ journey.import = Token.register( end ) +journey.check_import = Token.register( + function(data) + if not data then + return + end + script.raise_event(events.check_import, data) + end +) + local function on_chunk_generated(event) local surface = event.surface