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

Fix issue with backpack not despawning

This commit is contained in:
LoJoSho
2022-11-25 10:19:25 -06:00
parent 240bb514b5
commit 689ecee00e

View File

@@ -194,6 +194,7 @@ public class CosmeticUser {
public void despawnBackpack() {
Player player = Bukkit.getPlayer(getUniqueId());
if (invisibleArmorstand == null) return;
invisibleArmorstand.getBukkitLivingEntity().setHealth(0);
invisibleArmorstand.remove(net.minecraft.world.entity.Entity.RemovalReason.DISCARDED);
this.invisibleArmorstand = null;
}