From 35652ebe985a6439ba8a8bddc89cff202f893792 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Mon, 16 Jun 2025 01:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4obb=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/atsuishio/superbwarfare/mixins/LevelMixin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/mixins/LevelMixin.java b/src/main/java/com/atsuishio/superbwarfare/mixins/LevelMixin.java index 6a7a1b6c8..a9b94a32d 100644 --- a/src/main/java/com/atsuishio/superbwarfare/mixins/LevelMixin.java +++ b/src/main/java/com/atsuishio/superbwarfare/mixins/LevelMixin.java @@ -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); + } } } }