Skip to content

Commit

Permalink
fix: fix wrong api uses
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN authored Dec 5, 2023
1 parent 5057133 commit 655a908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ll/api/event/player/PlayerTakeDropItemEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 655a908

Please sign in to comment.