SteamWar/MissileWars
Archiviert
13
0
Dieser Commit ist enthalten in:
yoyosource 2021-11-24 10:53:30 +01:00
Ursprung 7adab45476
Commit 5b7cf2c689

Datei anzeigen

@ -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);
}
}