From d15728aba8705a15868379dbaf6619e3155a5410 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 26 Sep 2020 21:49:54 +0200 Subject: [PATCH] Fix missiles --- src/de/steamwar/misslewars/items/Missile.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/de/steamwar/misslewars/items/Missile.java b/src/de/steamwar/misslewars/items/Missile.java index cd6b00c..99e5e0d 100644 --- a/src/de/steamwar/misslewars/items/Missile.java +++ b/src/de/steamwar/misslewars/items/Missile.java @@ -149,18 +149,6 @@ public class Missile extends SpecialItem { } public static void init() { - File missileFolder = new File(MissileWars.getPlugin().getDataFolder(), "default-missiles"); - 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; - new Missile(missileFile); - } - otherInit(); - } - - public static void otherInit() { File missileFolder = new File(MissileWars.getPlugin().getDataFolder(), "missiles"); if (!missileFolder.exists() || !missileFolder.canRead() || !missileFolder.isDirectory()) { throw new SecurityException("Missiles could not be loaded");