add a "not fully supported" tooltip for bags that use the fallback hotbar method

This commit is contained in:
trunksbomb
2026-03-23 04:44:38 -04:00
parent a90227ff02
commit 8189359e91
2 changed files with 4 additions and 0 deletions

View File

@@ -1050,6 +1050,9 @@ public final class BagTabOverlay {
private static List<Component> getTooltipLines(RenderedTab tab, List<BagEntry> tabs) {
List<Component> lines = new ArrayList<>();
lines.add(tab.entry().stack().getHoverName());
if (tab.entry().handler() == null) {
lines.add(Component.translatable("bagtabs.tooltip.hotbar_fallback").withStyle(style -> style.withItalic(true)));
}
lines.add(Component.literal("Left-click: open"));
if (tab.pinned()) {
if (!DockConfigManager.isInteractionsLocked()) {

View File

@@ -5,6 +5,7 @@
"container.bagtabs.bag": "Bag",
"container.bagtabs.bag_namer": "Bag Namer",
"bagtabs.tooltip.click_to_open": "Open from your inventory tabs",
"bagtabs.tooltip.hotbar_fallback": "This container is not fully supported",
"bagtabs.gui.bag_namer.name": "New Name",
"bagtabs.gui.bag_namer.placeholder": "Leave blank to clear",
"bagtabs.gui.bag_namer.rename": "Rename",