From db95803e7bbaafad33267bd0768b4aeefb318acf Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Wed, 4 Sep 2024 21:44:47 +0200 Subject: [PATCH] Fix bug for non-trickling dripstone --- api.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/api.lua b/api.lua index 4fe2339..f9f0076 100644 --- a/api.lua +++ b/api.lua @@ -172,11 +172,13 @@ function internal.register_dripstone_flavor(flavor, def) -- full, and the structure simply waits for a dripstone node to grow. -- This behaviour is designed to be easy to override. (For example: if -- you want a HEAVY watered dripstone type that holds 2 droplets.) - internal.register_droplet_catcher( - trickl, - internal.size_to_name(flavor, 1), - internal.size_to_name(flavor, 1) - ) + if trickl then + internal.register_droplet_catcher( + trickl, + internal.size_to_name(flavor, 1), + internal.size_to_name(flavor, 1) + ) + end -- Allow spike stalagmites to catch droplets. -- This feature can override the former safeguard.