Skip to content

Commit

Permalink
fix: fix onMobHurt cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Aug 3, 2024
1 parent 03cd4b2 commit f2ab997
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/legacy/api/EventAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,8 @@ void EnableEventListener(int eventId) {
}
}

CallEventRtnValue(
CallEvent(
EVENT_TYPES::onMobHurt,
false,
EntityClass::newEntity(&ev.self()),
damageSource ? EntityClass::newEntity(damageSource) : Local<Value>(),
Number::newNumber(ev.damage()),
Expand Down

0 comments on commit f2ab997

Please sign in to comment.