From 305f2aef353e4954ad76dde2302f253db0ff6d7f Mon Sep 17 00:00:00 2001 From: danielmartin0 Date: Wed, 25 Sep 2024 16:14:05 +0100 Subject: [PATCH] pirates: fix weird new import bug --- maps/pirates/api_events.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maps/pirates/api_events.lua b/maps/pirates/api_events.lua index 81a54d28..274a1e2c 100644 --- a/maps/pirates/api_events.lua +++ b/maps/pirates/api_events.lua @@ -1764,6 +1764,11 @@ function Public.event_on_chunk_generated(event) if scope.chunk_structures then chunk_structures_fn = scope.chunk_structures end end + if not terrain_fn then + log('[WARN]: no terrain function') + return + end + if not width then width = 999 log('no surface width? ' .. type)