mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-25 14:24:42 +00:00
Add cosmetic bauble slots and inventory switching
This commit is contained in:
1 parent
fb091861c4
commit
24bfb4598c
23 files changed
+547
-11
No files matched your search
@@ -41,6 +41,7 @@ public class SlotBauble extends Slot {
|
||||
}
|
||||
|
||||
public InventoryBaubles getBaublesInventory() {
|
||||
if (inventory instanceof InventoryBaubleCosmetics cosmetics) return cosmetics.getOwner();
|
||||
return inventory instanceof InventoryBaubles baubles ? baubles : null;
|
||||
}
|
||||
|
||||
@@ -51,7 +52,7 @@ public class SlotBauble extends Slot {
|
||||
}
|
||||
|
||||
public boolean isCosmeticSlot() {
|
||||
return false;
|
||||
return inventory instanceof InventoryBaubleCosmetics;
|
||||
}
|
||||
|
||||
public boolean isSlotActive() {
|
||||
|
||||
Reference in new issue
Block a user