调整obb实体获取判定

This commit is contained in:
17146 2025-06-16 01:09:06 +08:00 committed by Light_Quanta
parent 4498b71573
commit 35652ebe98
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -28,10 +28,12 @@ public abstract class LevelMixin {
if (entity instanceof OBBEntity obbEntity) {
for (OBB obb : obbEntity.getOBBs()) {
if (OBB.isColliding(obb, pBoundingBox)) {
if (!cir.getReturnValue().contains(entity)) {
cir.getReturnValue().add(entity);
}
}
}
}
});
}
}