From 0fa316f6eb644aa6066382c77a5ec0c171765e29 Mon Sep 17 00:00:00 2001 From: expwnent Date: Mon, 2 Feb 2015 05:20:59 -0500 Subject: [PATCH] Tweak reaction-product-trigger. --- scripts/modtools/reaction-product-trigger.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/modtools/reaction-product-trigger.lua b/scripts/modtools/reaction-product-trigger.lua index 9ea1b4cfd..bbeaa4d6a 100644 --- a/scripts/modtools/reaction-product-trigger.lua +++ b/scripts/modtools/reaction-product-trigger.lua @@ -10,6 +10,10 @@ productHooks = productHooks or {} reactionInputItems = reactionInputItems +function preserveReagents() + reactionInputItems:resize(0) +end + eventful.enableEvent(eventful.eventType.UNLOAD,1) eventful.onUnload.reactionProductTrigger = function() productHooks = {}