From 3d47675f8ef7de44c4587a99ac26ea96205c8e56 Mon Sep 17 00:00:00 2001 From: OEOTYAN <58554322+OEOTYAN@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:39:34 +0800 Subject: [PATCH] refactor: using mojang's API --- src/mc/world/level/BlockSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc/world/level/BlockSource.cpp b/src/mc/world/level/BlockSource.cpp index a88e89e12a..5c4965aef8 100644 --- a/src/mc/world/level/BlockSource.cpp +++ b/src/mc/world/level/BlockSource.cpp @@ -31,7 +31,7 @@ BlockSource::getEntities(class AABB const& range, float extendDistance, ActorTyp for (auto& weakEntityRef : chunk->getChunkEntities()) { auto* actor = weakEntityRef.tryUnwrap(); if (actor != nullptr - && (actorType == ActorType::TypeMask || actor->isInstanceOf(actorType) != ignoreType) + && (actorType == ActorType::TypeMask || actor->isType(actorType) != ignoreType) && range.intersects(actor->getAABB())) { entities.emplace_back(actor); }