From 797b828a7f64c6dd0787e38e85530e4407a742d8 Mon Sep 17 00:00:00 2001
From: tobias <tobias.ullerich@icloud.com>
Date: Sun, 10 Jul 2016 10:50:51 +0200
Subject: [PATCH] Fix Plugins#load(String, boolean)

---
 PlayWall/src/application.yml                           | 2 +-
 PlayWallCore/src/de/tobias/playpad/plugin/Plugins.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/PlayWall/src/application.yml b/PlayWall/src/application.yml
index cb691eaa..f0232274 100644
--- a/PlayWall/src/application.yml
+++ b/PlayWall/src/application.yml
@@ -1,6 +1,6 @@
 name: PlayWall
 version: 5.0.1
-build: 28
+build: 29
 identifier: de.tobias.playpad
 main: de.tobias.playpad.PlayPadMain
 author: Tobias Ullerich
diff --git a/PlayWallCore/src/de/tobias/playpad/plugin/Plugins.java b/PlayWallCore/src/de/tobias/playpad/plugin/Plugins.java
index 7ee734fa..9cb3749a 100644
--- a/PlayWallCore/src/de/tobias/playpad/plugin/Plugins.java
+++ b/PlayWallCore/src/de/tobias/playpad/plugin/Plugins.java
@@ -23,6 +23,7 @@ public class Plugins {
 
 	public static List<Plugin> load(String pluginInfoURL, boolean fetch) throws IOException {
 		if (plugins.isEmpty() || fetch) {
+			plugins.clear();
 			URL url = new URL(pluginInfoURL);
 
 			FileConfiguration cfg = YamlConfiguration.loadConfiguration(url.openStream());
-- 
GitLab