diff --git a/lib/EventAPI-JS.d.ts b/lib/EventAPI-JS.d.ts index 735e00e..3fe4da5 100644 --- a/lib/EventAPI-JS.d.ts +++ b/lib/EventAPI-JS.d.ts @@ -234,4 +234,4 @@ declare class Event { containerId: number ) => void ): boolean; -} +} \ No newline at end of file diff --git a/src/EventAPI.cpp b/src/EventAPI.cpp index 6f7d2f2..a0bbbaf 100644 --- a/src/EventAPI.cpp +++ b/src/EventAPI.cpp @@ -266,7 +266,7 @@ void Export_Event_API() { } case doHash("HandleRequestAction"): { auto Call = RemoteCall::importAs< - bool(Player * player, std::string const& actionType, std::string const& ContainerNetId, int slot)>( + bool(Player * player, std::string const& actionType, int ContainerNetId, int slot)>( eventName, eventId ); @@ -278,7 +278,7 @@ void Export_Event_API() { result = Call( &ev.self(), magic_enum::enum_name(requestAction->mActionType).data(), - magic_enum::enum_name(requestAction->getSrc().mOpenContainerNetId).data(), + (int)requestAction->getSrc().mOpenContainerNetId, requestAction->getSrc().mSlot ); } catch (...) {}