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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user