Skip to content

Commit c530e48

Browse files
committed
fix: fix onPlayerPullFishingHook crash
1 parent a0cb26b commit c530e48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/legacy/events/EventHooks.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,9 @@ LL_TYPE_INSTANCE_HOOK(
789789
EVENT_TYPES::onPlayerPullFishingHook,
790790
PlayerClass::newPlayer(this->getPlayerOwner()),
791791
EntityClass::newEntity(&inEntity),
792-
inEntity.isType(ActorType::ItemEntity) ? ItemClass::newItem(&static_cast<ItemActor&>(inEntity).item(), true)
793-
: Local<Value>()
792+
inEntity.isType(ActorType::ItemEntity)
793+
? ItemClass::newItem(&static_cast<ItemActor&>(inEntity).item(), false)
794+
: Local<Value>()
794795
);
795796
}
796797
IF_LISTENED_END(EVENT_TYPES::onPlayerPullFishingHook);

0 commit comments

Comments
 (0)