Hotfix Missile
Dieser Commit ist enthalten in:
Ursprung
7adab45476
Commit
5b7cf2c689
@ -150,6 +150,7 @@ public class Missile extends SpecialItem {
|
|||||||
if (!missileFolder.exists() || !missileFolder.canRead() || !missileFolder.isDirectory()) throw new SecurityException("Missiles could not be loaded");
|
if (!missileFolder.exists() || !missileFolder.canRead() || !missileFolder.isDirectory()) throw new SecurityException("Missiles could not be loaded");
|
||||||
for (File missileFile : Objects.requireNonNull(missileFolder.listFiles())) {
|
for (File missileFile : Objects.requireNonNull(missileFolder.listFiles())) {
|
||||||
if (!missileFile.canRead() || !missileFile.isFile()) continue;
|
if (!missileFile.canRead() || !missileFile.isFile()) continue;
|
||||||
|
if (!missileFile.getName().endsWith(".schem")) continue;
|
||||||
new Missile(missileFile);
|
new Missile(missileFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren