From 2466afd0cd498e6c0bf8c17eef7e9113afdbdb5b Mon Sep 17 00:00:00 2001 From: B1n_ry Date: Mon, 23 Sep 2024 13:07:57 +0200 Subject: [PATCH] Game no longer has a chance of crashing on startup while traveler's backpack and accessories are loaded --- .../com/b1n_ry/yigd/compat/TravelersBackpackCompat.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/b1n_ry/yigd/compat/TravelersBackpackCompat.java b/src/main/java/com/b1n_ry/yigd/compat/TravelersBackpackCompat.java index 9aac0d3..681849a 100644 --- a/src/main/java/com/b1n_ry/yigd/compat/TravelersBackpackCompat.java +++ b/src/main/java/com/b1n_ry/yigd/compat/TravelersBackpackCompat.java @@ -18,7 +18,12 @@ public class TravelersBackpackCompat implements InvModCompat> { public static boolean isAccessoriesIntegrationEnabled() { - return TravelersBackpackConfig.getConfig().backpackSettings.accessoriesIntegration; + try { + return TravelersBackpackConfig.getConfig().backpackSettings.accessoriesIntegration; + } + catch (Exception e) { + return false; + } } @Override