From 096214efc44b656273039af4ce24b0cd9be59abe Mon Sep 17 00:00:00 2001 From: Qiuzhizhe <42761326+quizhizhe@users.noreply.github.com> Date: Thu, 27 Oct 2022 11:52:23 +0800 Subject: [PATCH] Fix Actor::hasCategory offset --- LiteLoader/Header/MC/Actor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LiteLoader/Header/MC/Actor.hpp b/LiteLoader/Header/MC/Actor.hpp index f8b3c0e..d0370cc 100644 --- a/LiteLoader/Header/MC/Actor.hpp +++ b/LiteLoader/Header/MC/Actor.hpp @@ -175,7 +175,7 @@ public: }; inline bool hasCategory(enum ActorCategory actorCategory) const{ // IDA Player::take Line123 - return (dAccess(this, 79) & actorCategory) !=0; + return (dAccess(this, 316) & actorCategory) !=0; }; inline BlockSource & getRegion() { //VanillaServerGameplayEventListener::onBlockPlacedByPlayer Line35