From 96cf1e430752acde34e65a839ed2df4501148a34 Mon Sep 17 00:00:00 2001 From: koolkrafter5 Date: Sat, 19 Jul 2025 16:20:31 -0400 Subject: [PATCH] Use string from BE instead of storing it here --- src/main/java/tconstruct/TConstruct.java | 6 ++---- src/main/java/tconstruct/library/weaponry/AmmoItem.java | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/tconstruct/TConstruct.java b/src/main/java/tconstruct/TConstruct.java index df3da846..3a71f6a4 100644 --- a/src/main/java/tconstruct/TConstruct.java +++ b/src/main/java/tconstruct/TConstruct.java @@ -138,8 +138,6 @@ public class TConstruct { modID, new ForgeCFG("TinkersModules", "Modules: Disabling these will disable a chunk of the mod")); - public static final String AMMOBAUBLESLOT = "quiver"; - public TConstruct() { if (Loader.isModLoaded("Natura")) { logger.info("Natura, what are we going to do tomorrow night?"); @@ -226,8 +224,8 @@ public class TConstruct { TConstructAPI.PROP_NAME = TPlayerStats.PROP_NAME; if (LoadedMods.baublesExpanded) { - BaubleExpandedSlots.tryRegisterType(AMMOBAUBLESLOT); - BaubleExpandedSlots.tryAssignSlotOfType(AMMOBAUBLESLOT); + BaubleExpandedSlots.tryRegisterType(BaubleExpandedSlots.quiverType); + BaubleExpandedSlots.tryAssignSlotOfType(BaubleExpandedSlots.quiverType); } } diff --git a/src/main/java/tconstruct/library/weaponry/AmmoItem.java b/src/main/java/tconstruct/library/weaponry/AmmoItem.java index fc9701ce..40d98954 100644 --- a/src/main/java/tconstruct/library/weaponry/AmmoItem.java +++ b/src/main/java/tconstruct/library/weaponry/AmmoItem.java @@ -2,6 +2,7 @@ package tconstruct.library.weaponry; import java.util.List; +import baubles.api.expanded.BaubleExpandedSlots; import net.minecraft.client.gui.GuiScreen; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; @@ -222,7 +223,7 @@ public abstract class AmmoItem extends ToolCore implements IBattlegearWeapon, IA @Override @Optional.Method(modid = "Baubles|Expanded") public String[] getBaubleTypes(ItemStack itemstack) { - return new String[] { TConstruct.AMMOBAUBLESLOT }; + return new String[] { BaubleExpandedSlots.quiverType }; } // Fallback for base Baubles