Fix Actor::hasCategory offset

This commit is contained in:
Qiuzhizhe 2022-10-27 11:52:23 +08:00
parent e5eef86dd1
commit 096214efc4
No known key found for this signature in database
GPG Key ID: 4EF4BF5521540263

View File

@ -175,7 +175,7 @@ public:
}; };
inline bool hasCategory(enum ActorCategory actorCategory) const{ inline bool hasCategory(enum ActorCategory actorCategory) const{
// IDA Player::take Line123 // IDA Player::take Line123
return (dAccess<ActorCategory>(this, 79) & actorCategory) !=0; return (dAccess<ActorCategory>(this, 316) & actorCategory) !=0;
}; };
inline BlockSource & getRegion() { inline BlockSource & getRegion() {
//VanillaServerGameplayEventListener::onBlockPlacedByPlayer Line35 //VanillaServerGameplayEventListener::onBlockPlacedByPlayer Line35