调整obb实体获取判定
This commit is contained in:
parent
4498b71573
commit
35652ebe98
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,9 @@ public abstract class LevelMixin {
|
|||
if (entity instanceof OBBEntity obbEntity) {
|
||||
for (OBB obb : obbEntity.getOBBs()) {
|
||||
if (OBB.isColliding(obb, pBoundingBox)) {
|
||||
cir.getReturnValue().add(entity);
|
||||
if (!cir.getReturnValue().contains(entity)) {
|
||||
cir.getReturnValue().add(entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue