Update to Minecraft 1.14-pre5

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-04-23 12:00:00 +10:00
parent 3c840f61b8
commit 30a442aef7
92 changed files with 2602 additions and 884 deletions

View File

@@ -89,14 +89,16 @@ public class PluginManagerTest {
pm.callEvent(event);
} catch (Throwable ex) {
store.value = ex;
assertThat(event.getEventName() + " cannot be triggered asynchronously from another thread.", is(ex.getMessage()));
return;
}
}
}
);
secondThread.start();
secondThread.join();
if (store.value != null) {
throw new RuntimeException((Throwable) store.value);
if (store.value == null) {
throw new IllegalStateException("No exception thrown");
}
}
@@ -112,14 +114,16 @@ public class PluginManagerTest {
}
} catch (Throwable ex) {
store.value = ex;
assertThat(event.getEventName() + " cannot be triggered asynchronously from another thread.", is(ex.getMessage()));
return;
}
}
}
);
secondThread.start();
secondThread.join();
if (store.value != null) {
throw new RuntimeException((Throwable) store.value);
if (store.value == null) {
throw new IllegalStateException("No exception thrown");
}
}