From f51917a4ced435827f19402bb8fff230b2946bce Mon Sep 17 00:00:00 2001 From: OEOTYAN Date: Tue, 13 Feb 2024 04:14:22 +0800 Subject: [PATCH] refactor: remove extra cost --- src/ll/test/TestDataItem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ll/test/TestDataItem.cpp b/src/ll/test/TestDataItem.cpp index 28247f4b71..3d765a11df 100644 --- a/src/ll/test/TestDataItem.cpp +++ b/src/ll/test/TestDataItem.cpp @@ -13,8 +13,8 @@ LL_AUTO_TYPE_INSTANCE_HOOK(ACTickHook, HookPriority::Normal, ItemActor, &ItemActor::postNormalTick, void) { origin(); - SetActorDataPacket packet{getRuntimeID(), getEntityData(), nullptr, 0, true}; - + SetActorDataPacket packet; + packet.mId = getRuntimeID(); packet.mPackedItems.emplace_back(DataItem::create(ActorDataIDs::Name, item().getTypeName())); packet.mPackedItems.emplace_back(DataItem::create(ActorDataIDs::NametagAlwaysShow, true));