This commit is contained in:
piebot
2026-03-16 02:04:53 +03:00
parent 1cc46a5e91
commit b26d5e2a4f
49 changed files with 1127 additions and 141 deletions
+5
View File
@@ -675,6 +675,11 @@ shared_ptr<Packet> TrackedEntity::getAddEntityPacket()
yHeadRotp = Mth::floor(e->getYHeadRot() * 256 / 360);
return std::make_shared<AddMobPacket>(dynamic_pointer_cast<LivingEntity>(e), yRotp, xRotp, xp, yp, zp, yHeadRotp);
}
else if (e->instanceof(eTYPE_ARMORSTAND))
{
yHeadRotp = Mth::floor(e->getYHeadRot() * 256 / 360);
return std::make_shared<AddMobPacket>(dynamic_pointer_cast<LivingEntity>(e), yRotp, xRotp, xp, yp, zp, yHeadRotp);
}
else if (e->instanceof(eTYPE_FISHINGHOOK))
{
shared_ptr<Entity> owner = dynamic_pointer_cast<FishingHook>(e)->owner;