Added Empty/Unused Slot texture/Quick Docs on old layout (#27)

This commit is contained in:
Ranzu authored and GitHub committed 2026-03-02 19:18:04 -05:00
1 parent 94bb06d393
commit 609200fac7
4 files changed
+62 -4

No files matched your search

@@ -5,6 +5,7 @@ import baubles.api.IBauble;
import baubles.api.expanded.BaubleExpandedSlots;
import baubles.api.expanded.IBaubleExpanded;
import baubles.common.Baubles;
import baubles.common.BaublesConfig;
import baubles.common.ItemDebugger;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -77,9 +78,12 @@ public class SlotBauble extends Slot {
return 1;
}
@Override
@Override
@SideOnly(Side.CLIENT)
public IIcon getBackgroundIconIndex() {
if (!BaublesConfig.useOldGuiRendering && BaubleExpandedSlots.unknownType.equals(slotType)) {
return null;
}
return ((ItemDebugger) Baubles.itemDebugger).getBackgroundIconForSlotType(slotType);
}