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

fix: dispatch update also updates location for viewers

This commit is contained in:
Logan
2025-12-16 13:03:54 -06:00
parent ebbc80c465
commit 98d2692def

View File

@@ -54,6 +54,9 @@ public class CosmeticBackpackType extends Cosmetic implements CosmeticUpdateBeha
UserEntity entityManager = backpackManager.getEntityManager(); UserEntity entityManager = backpackManager.getEntityManager();
if(entityManager == null) return; if(entityManager == null) return;
entityManager.teleport(loc);
entityManager.setRotation((int) loc.getYaw(), isFirstPersonCompadible());
int firstArmorStandId = backpackManager.getFirstArmorStandId(); int firstArmorStandId = backpackManager.getFirstArmorStandId();
List<Player> newViewers = entityManager.refreshViewers(loc); List<Player> newViewers = entityManager.refreshViewers(loc);