diff --git a/src/ll/api/event/player/PlayerJumpEvent.cpp b/src/ll/api/event/player/PlayerJumpEvent.cpp index 56730bfb34..c38161728e 100644 --- a/src/ll/api/event/player/PlayerJumpEvent.cpp +++ b/src/ll/api/event/player/PlayerJumpEvent.cpp @@ -58,8 +58,8 @@ LL_STATIC_HOOK( ActorDataFlagComponent& actorDataFlag, ActorDataDirtyFlagsComponent& actorDataDirtyFlags, VanillaClientGameplayComponent& vanillaClientGameplayComponent, - void* sneakingComponent, - void* isInWater, + ::Optional sneakingComponent, + ::Optional isInWater, OptionalGlobal<::PlayerMovementSettingsComponent const>& playerMovementSettingsComponent ) { origin( diff --git a/src/ll/api/memory/Hook.h b/src/ll/api/memory/Hook.h index 251d454d5c..11f9f144fe 100644 --- a/src/ll/api/memory/Hook.h +++ b/src/ll/api/memory/Hook.h @@ -1,6 +1,6 @@ #pragma once -#include +#include // IWYU pragma: keep #include #include #include @@ -80,11 +80,6 @@ constexpr FuncPtr resolveIdentifier(uintptr_t address) { return toFuncPtr(address); } -template -constexpr FuncPtr resolveIdentifier(void* address) { - return address; -} - template requires(!std::is_member_function_pointer_v) consteval bool virtualDetector() noexcept { @@ -122,7 +117,7 @@ class HookRegistrar { HookRegistrar& operator=(HookRegistrar&&) noexcept = default; }; -struct LL_EBO Hook {}; +struct LL_EBO Hook{}; } // namespace ll::memory