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

pop the balloon

This commit is contained in:
LoJoSho
2023-01-10 18:41:19 -06:00
parent 92fa978eba
commit e22a061c4e
2 changed files with 1 additions and 4 deletions

View File

@@ -44,11 +44,9 @@ public class CosmeticBalloonType extends Cosmetic {
return;
}
//newLocation.add(player.getVelocity().clone().multiply(-1));
Vector velocity = newLocation.clone().toVector().subtract(currentLocation.clone().toVector());
balloonEntity.getModelEntity().setVelocity(velocity);
balloonEntity.setLocation(newLocation);
//balloonEntity.setVelocity(newLocation.clone().subtract(currentLocation.clone()).toVector());
balloonEntity.setVelocity(velocity);
PacketManager.sendTeleportPacket(balloonEntity.getPufferfishBalloonId(), newLocation, false, viewer);
if (!user.getHidden()) PacketManager.sendLeashPacket(balloonEntity.getPufferfishBalloonId(), player.getEntityId(), viewer);

View File

@@ -113,7 +113,6 @@ public class BalloonEntity {
}
public void setLocation(Location location) {
//this.megEntity.teleportTo(location.getX(), location.getY(), location.getZ());
this.modelEntity.teleport(location);
}