From 5a0614974eafe6b8c4a7810a01334d8947777077 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 2 Sep 2023 22:18:13 +0200 Subject: [PATCH] Fix planToAnywhere Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/ai/LixfelPathplanner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/ai/LixfelPathplanner.java b/FightSystem_Core/src/de/steamwar/fightsystem/ai/LixfelPathplanner.java index 5e5c8e7..1e81302 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/ai/LixfelPathplanner.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/ai/LixfelPathplanner.java @@ -102,7 +102,7 @@ public class LixfelPathplanner { if(intermediate == null) return Collections.emptyList(); - List plan = plan(start, intermediate); + List plan = new ArrayList<>(plan(start, intermediate)); plan.add(destination); return plan;