From 655a908335ebc4539635802de351f1b5cb1fa3c2 Mon Sep 17 00:00:00 2001 From: OEOTYAN <58554322+OEOTYAN@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:47:45 +0800 Subject: [PATCH] fix: fix wrong api uses --- src/ll/api/event/player/PlayerTakeDropItemEvent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ll/api/event/player/PlayerTakeDropItemEvent.cpp b/src/ll/api/event/player/PlayerTakeDropItemEvent.cpp index ade7ff8e32..8f775bdb7d 100644 --- a/src/ll/api/event/player/PlayerTakeDropItemEvent.cpp +++ b/src/ll/api/event/player/PlayerTakeDropItemEvent.cpp @@ -17,7 +17,7 @@ LL_TYPED_INSTANCE_HOOK( int i0, int i1 ) { - if (itemActor.isItemActor()) { + if (itemActor.isType(ActorType::ItemEntity)) { auto ev = PlayerTakeDropItemEvent(*this, *(ItemActor*)(&itemActor)); EventBus::getInstance().publish(ev); if (ev.isCancelled()) {