9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-29 11:59:21 +00:00

clean: add debug messages for respawning of cosmetics

This commit is contained in:
LoJoSho
2024-01-02 11:10:36 -06:00
parent 4b481ef3ea
commit 8c251a8c69

View File

@@ -237,7 +237,7 @@ public class CosmeticUser {
@SuppressWarnings("deprecation")
public ItemStack getUserCosmeticItem(Cosmetic cosmetic, ItemStack item) {
if (item == null) {
MessagesUtil.sendDebugMessages("GetUserCosemticUser Item is null");
//MessagesUtil.sendDebugMessages("GetUserCosemticUser Item is null");
return new ItemStack(Material.AIR);
}
if (item.hasItemMeta()) {
@@ -414,6 +414,7 @@ public class CosmeticUser {
final Cosmetic cosmetic = getCosmetic(CosmeticSlot.BACKPACK);
despawnBackpack();
spawnBackpack((CosmeticBackpackType) cosmetic);
MessagesUtil.sendDebugMessages("Respawned Backpack for " + getEntity().getName());
}
public void respawnBalloon() {
@@ -421,6 +422,7 @@ public class CosmeticUser {
final Cosmetic cosmetic = getCosmetic(CosmeticSlot.BALLOON);
despawnBalloon();
spawnBalloon((CosmeticBalloonType) cosmetic);
MessagesUtil.sendDebugMessages("Respawned Balloon for " + getEntity().getName());
}
public void removeArmor(CosmeticSlot slot) {