From 5b7cf2c689835570c17c8cea9dd0bb0c8545c891 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 24 Nov 2021 10:53:30 +0100 Subject: [PATCH] Hotfix Missile --- src/de/steamwar/misslewars/items/Missile.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/de/steamwar/misslewars/items/Missile.java b/src/de/steamwar/misslewars/items/Missile.java index b97d18b..efb1a1a 100644 --- a/src/de/steamwar/misslewars/items/Missile.java +++ b/src/de/steamwar/misslewars/items/Missile.java @@ -150,6 +150,7 @@ public class Missile extends SpecialItem { if (!missileFolder.exists() || !missileFolder.canRead() || !missileFolder.isDirectory()) throw new SecurityException("Missiles could not be loaded"); for (File missileFile : Objects.requireNonNull(missileFolder.listFiles())) { if (!missileFile.canRead() || !missileFile.isFile()) continue; + if (!missileFile.getName().endsWith(".schem")) continue; new Missile(missileFile); } }