Use string from BE instead of storing it here

This commit is contained in:
koolkrafter5 committed 2025-07-19 16:20:31 -04:00
1 parent 2787d02682
commit 96cf1e4307
2 files changed
+4 -5

No files matched your search

+2 -4
View File
@@ -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);
}
}
@@ -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