Tooltip shown when shift is held

This commit is contained in:
slprime committed 2022-08-17 23:47:47 +03:00
1 parent 7d097035b2
commit e97a2d110e
1 file changed
+5 -3
@@ -489,10 +489,12 @@ public class GuiContainerManager {
if (stack != null) {
tooltip = itemDisplayNameMultiline(stack, window, true);
final String itemCount = itemCountDetails(stack);
if (stack.stackSize != Integer.MAX_VALUE && NEIClientUtils.shiftKey()) {
final String itemCount = itemCountDetails(stack);
if (itemCount != null) {
tooltip.add(String.format(EnumChatFormatting.GRAY + itemCount + EnumChatFormatting.RESET));
if (itemCount != null) {
tooltip.add(String.format(EnumChatFormatting.GRAY + itemCount + EnumChatFormatting.RESET));
}
}
}