9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-25 09:59:28 +00:00

Better balloon item handling in getUserCosmeticItem

This commit is contained in:
LoJoSho
2023-01-05 10:40:43 -06:00
parent 091cad8a24
commit fc21381314

View File

@@ -166,7 +166,11 @@ public class CosmeticUser {
item = cosmetic.getItem();
}
if (cosmetic instanceof CosmeticBalloonType) {
item = new ItemStack(Material.LEATHER_HORSE_ARMOR);
if (cosmetic.getItem() == null) {
item = new ItemStack(Material.LEATHER_HORSE_ARMOR);
} else {
item = cosmetic.getItem();
}
}
if (item == null) {
MessagesUtil.sendDebugMessages("GetUserCosemticUser Item is null");