mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-10-25 20:22:26 +00:00
Handle tooltip for "universal" type baubles correctly (#25)
This commit is contained in:
1 parent
34d6480d23
commit
a58cd9318c
1 file changed
+2
-2
@@ -275,7 +275,7 @@ public class GuiPlayerExpanded extends GuiContainer implements INEIGuiHandler {
|
||||
if (heldItem.getItem() instanceof IBaubleExpanded baubleExpandedItem) {
|
||||
String[] itemBaubleTypes = baubleExpandedItem.getBaubleTypes(heldItem);
|
||||
for(String itemBaubleType : itemBaubleTypes) {
|
||||
if (slotType.equals(itemBaubleType)) {
|
||||
if (itemBaubleType.equals(BaubleExpandedSlots.universalType) || slotType.equals(itemBaubleType)) {
|
||||
fitsInSlot = true;
|
||||
break;
|
||||
}
|
||||
@@ -283,7 +283,7 @@ public class GuiPlayerExpanded extends GuiContainer implements INEIGuiHandler {
|
||||
}
|
||||
else if(heldItem.getItem() instanceof IBauble baubleItem) {
|
||||
String itemBaubleType = BaubleExpandedSlots.getTypeFromBaubleType(baubleItem.getBaubleType(heldItem));
|
||||
if (slotType.equals(itemBaubleType)) {
|
||||
if (itemBaubleType.equals(BaubleExpandedSlots.universalType) || slotType.equals(itemBaubleType)) {
|
||||
fitsInSlot = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user