Skip to content

Commit

Permalink
refactor: using mojang's API
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN authored Dec 5, 2023
1 parent 789e870 commit 3d47675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mc/world/level/BlockSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BlockSource::getEntities(class AABB const& range, float extendDistance, ActorTyp
for (auto& weakEntityRef : chunk->getChunkEntities()) {
auto* actor = weakEntityRef.tryUnwrap<Actor>();
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);
}
Expand Down

0 comments on commit 3d47675

Please sign in to comment.