mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 06:52:21 +00:00
Show Attributes on Items in Auction House
This commit is contained in:
1 parent
5c975a339d
commit
9dac3d01d9
1 file changed
+6
-2
@@ -238,7 +238,7 @@ public class AttributeItemUtil {
|
||||
NBTTagCompound attrTag = rpgCore.hasKey(TAG_ATTRIBUTES) ? rpgCore.getCompoundTag(TAG_ATTRIBUTES) : new NBTTagCompound();
|
||||
if (Keyboard.isKeyDown(ClientProxy.NPCButton.getKeyCode()) || override) {
|
||||
List<String> newTooltips = new ArrayList<>();
|
||||
if (!tooltip.isEmpty()) {
|
||||
if (!tooltip.isEmpty() && !override) {
|
||||
newTooltips.add(tooltip.get(0));
|
||||
}
|
||||
|
||||
@@ -326,7 +326,11 @@ public class AttributeItemUtil {
|
||||
newTooltips.addAll(buildSection(reqEntries));
|
||||
}
|
||||
|
||||
tooltip = newTooltips;
|
||||
if(override){
|
||||
tooltip.addAll(newTooltips);
|
||||
} else {
|
||||
tooltip = newTooltips;
|
||||
}
|
||||
} else {
|
||||
String keyName = Keyboard.getKeyName(ClientProxy.NPCButton.getKeyCode());
|
||||
tooltip.add(EnumChatFormatting.YELLOW + "" + EnumChatFormatting.ITALIC +
|
||||
|
||||
Reference in new issue
Block a user