From c347cc2954efc524690893cacc3ecac30b5b096f Mon Sep 17 00:00:00 2001 From: Patbox <39821509+Patbox@users.noreply.github.com> Date: Fri, 2 Aug 2024 20:00:35 +0200 Subject: [PATCH] Check directly for tclayer instead of just accessories --- src/main/java/eu/pb4/graves/GravesMod.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/eu/pb4/graves/GravesMod.java b/src/main/java/eu/pb4/graves/GravesMod.java index 65a3a3c..5240681 100644 --- a/src/main/java/eu/pb4/graves/GravesMod.java +++ b/src/main/java/eu/pb4/graves/GravesMod.java @@ -87,14 +87,12 @@ public void onInitialize() { InventorioCompat.register(); } - var hasAccessories = loader.isModLoaded("accessories"); - - if (hasAccessories) { + if (loader.isModLoaded("accessories")) { AccessoriesCompat.register(); } if (loader.isModLoaded("trinkets")) { - TrinketsCompat.register(hasAccessories); + TrinketsCompat.register(loader.isModLoaded("tclayer")); } if (loader.isModLoaded("sgod")) { SaveGearOnDeathCompat.register();