From 2377b7e7ebd494699285e3c146b0b84ce85a8fce Mon Sep 17 00:00:00 2001 From: Brevven Date: Tue, 7 Jan 2025 04:15:41 -0800 Subject: [PATCH] mod compat --- changelog.txt | 2 ++ deadlock-stacking.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index deef25a..a1c2733 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,8 @@ Version: 2.0.1 Date: 2025-01-07 Changes: - In Space Age, modded sand (eg in AAI Industry) will now be created in basic crusher + Fixes: + - Attempted fix for crash with a large suite of mods, one of which seems to set a "deadlock" global variable --------------------------------------------------------------------------------------------------- Version: 2.0.0 Date: 2025-01-06 diff --git a/deadlock-stacking.lua b/deadlock-stacking.lua index 3debaf0..246ceb2 100644 --- a/deadlock-stacking.lua +++ b/deadlock-stacking.lua @@ -1,7 +1,7 @@ -- Deadlock stacking recipes local util = require("__bzsilicon__.data-util"); -if deadlock then +if deadlock and deadlock["add_stack"] then deadlock.add_stack("silica", "__bzsilicon__/graphics/icons/stacked/silica-stacked.png" , "deadlock-stacking-1", 64) deadlock.add_stack("optical-fiber", "__bzsilicon__/graphics/icons/stacked/optical-fiber-stacked.png" , "deadlock-stacking-2", 64) if not mods["Krastorio2"] then