Fixed tests breaking due to class unloading

This commit is contained in:
Rsl1122 2018-05-13 12:25:02 +03:00
parent 887cf3c29e
commit 09a2737053

View File

@ -111,7 +111,9 @@ public class ShutdownUpdateHook extends Thread {
@Override
public void run() {
unloadJar();
if (!(Check.isBukkitAvailable() && Check.isSpongeAvailable() && Check.isBungeeAvailable())) {
unloadJar();
}
for (File f : toDelete) {
if (!f.delete()) {