mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix ricochets on external modules
This commit is contained in:
1 parent
dc6c528167
commit
a2b573abca
1 file changed
+4
-3
+4
-3
@@ -161,9 +161,10 @@ export function SpacedArmorSceneComponent({
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!allowRicochet &&
|
!allowRicochet &&
|
||||||
noDuplicateIntersections.every((intersection) => {
|
noDuplicateIntersections.every(
|
||||||
intersection.object.userData.type !== ArmorType.Primary;
|
(intersection) =>
|
||||||
})
|
intersection.object.userData.type !== ArmorType.Primary,
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user