add a "not fully supported" tooltip for bags that use the fallback hotbar method
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user