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