Skip to content

Commit e796813

Browse files
committed
fix: fix onPlayerInteractEntity #231
1 parent feaa6df commit e796813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lse/events/PlayerEvents.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ LL_TYPE_INSTANCE_HOOK(
585585
IF_LISTENED(EVENT_TYPES::onPlayerInteractEntity) {
586586
if (!CallEvent(
587587
EVENT_TYPES::onPlayerInteractEntity,
588-
EntityClass::newEntity(this),
588+
PlayerClass::newPlayer(this),
589589
EntityClass::newEntity(&actor),
590590
FloatPos::newPos(location, getDimensionId())
591591
)) {

0 commit comments

Comments
 (0)