Skip to content

Commit

Permalink
refactor: remove extra cost
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Feb 12, 2024
1 parent 76cd37b commit f51917a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ll/test/TestDataItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit f51917a

Please sign in to comment.