mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-25 16:37:21 +00:00
reference ME in some todos
This commit is contained in:
parent
def50adfcc
commit
06aef8ddaf
|
|
@ -86,7 +86,7 @@ PlayerList::~PlayerList()
|
|||
|
||||
bool PlayerList::placeNewPlayer(Connection *connection, shared_ptr<ServerPlayer> player, shared_ptr<LoginPacket> packet)
|
||||
{
|
||||
// todo: we should move emit player join event here
|
||||
// (SYLV)todo: we should move emit player join event here
|
||||
CompoundTag *playerTag = load(player);
|
||||
|
||||
bool newPlayer = playerTag == nullptr;
|
||||
|
|
|
|||
|
|
@ -653,11 +653,11 @@ shared_ptr<Packet> TrackedEntity::getAddEntityPacket()
|
|||
|
||||
PlayerUID xuid = INVALID_XUID;
|
||||
PlayerUID OnlineXuid = INVALID_XUID;
|
||||
//if( player != nullptr )
|
||||
//{
|
||||
// xuid = player->getXuid();
|
||||
// OnlineXuid = player->getOnlineXuid();
|
||||
//}
|
||||
if( player != nullptr )
|
||||
{
|
||||
xuid = player->getXuid();
|
||||
OnlineXuid = player->getOnlineXuid();
|
||||
}
|
||||
// 4J Added yHeadRotp param to fix #102563 - TU12: Content: Gameplay: When one of the Players is idle for a few minutes his head turns 180 degrees.
|
||||
return std::make_shared<AddPlayerPacket>(player, xuid, OnlineXuid, xp, yp, zp, yRotp, xRotp, yHeadRotp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -775,7 +775,7 @@ bool LivingEntity::hurt(DamageSource *source, float dmg)
|
|||
|
||||
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
||||
{
|
||||
// todo: map these properly
|
||||
// (SYLV)todo: map these properly
|
||||
|
||||
int entityTypeId = FourKitBridge::MapEntityType((int)GetType());
|
||||
int dimId = level->dimension ? level->dimension->id : 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue