mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-25 00:11:05 +01:00
TU46 Test content and patches
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
This commit is contained in:
1 parent
8d6b69f599
commit
ff562d1644
497 files changed
+11187
-771
No files matched your search
@@ -732,6 +732,14 @@ shared_ptr<Packet> TrackedEntity::getAddEntityPacket()
|
||||
{
|
||||
return std::make_shared<AddEntityPacket>(e, AddEntityPacket::BOAT, yRotp, xRotp, xp, yp, zp);
|
||||
}
|
||||
else if (e->instanceof(eTYPE_AREA_EFFECT_CLOUD))
|
||||
{
|
||||
return std::make_shared<AddEntityPacket>(e, AddEntityPacket::AREA_EFFECT_CLOUD, yRotp, xRotp, xp, yp, zp);
|
||||
}
|
||||
else if (e->instanceof(eTYPE_SHULKER_BULLET))
|
||||
{
|
||||
return std::make_shared<AddEntityPacket>(e, AddEntityPacket::SHULKER_BULLET, e->entityId, yRotp, xRotp, xp, yp, zp);
|
||||
}
|
||||
else if (e->instanceof(eTYPE_ENDERDRAGON))
|
||||
{
|
||||
yHeadRotp = Mth::floor(e->getYHeadRot() * 256 / 360);
|
||||
@@ -758,7 +766,7 @@ shared_ptr<Packet> TrackedEntity::getAddEntityPacket()
|
||||
}
|
||||
else if (e->instanceof(eTYPE_THROWNPOTION))
|
||||
{
|
||||
return std::make_shared<AddEntityPacket>(e, AddEntityPacket::THROWN_POTION, ((dynamic_pointer_cast<ThrownPotion>(e))->getPotionValue()), yRotp, xRotp, xp, yp, zp);
|
||||
return std::make_shared<AddEntityPacket>(e, AddEntityPacket::THROWN_POTION, (dynamic_pointer_cast<ThrownPotion>(e)->getPotionValue() | (dynamic_pointer_cast<ThrownPotion>(e)->isLingering() ? ThrownPotion::LINGERING_FLAG : 0)), yRotp, xRotp, xp, yp, zp);
|
||||
}
|
||||
else if (e->instanceof(eTYPE_THROWNEXPBOTTLE))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user