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

fix: spawned invalid entity trying to respawn itself after spawning itself

This commit is contained in:
LoJoSho
2023-08-17 12:28:33 -05:00
parent 0b5f986cfc
commit fa2aa2c6dc

View File

@@ -197,6 +197,10 @@ public class CosmeticUser {
}
}
public ItemStack getUserCosmeticItem(CosmeticSlot slot) {
return getUserCosmeticItem(getCosmetic(slot));
}
public ItemStack getUserCosmeticItem(Cosmetic cosmetic) {
ItemStack item = null;
if (hideCosmetics) {
@@ -364,7 +368,7 @@ public class CosmeticUser {
public void spawnBalloon(CosmeticBalloonType cosmeticBalloonType) {
if (this.userBalloonManager != null) return;
this.userBalloonManager = NMSHandlers.getHandler().spawnBalloon(this, cosmeticBalloonType);
updateCosmetic(cosmeticBalloonType);
//updateCosmetic(cosmeticBalloonType);
}
public void despawnBalloon() {