Rework the packet queue, fix some startup bugs.

This commit is contained in:
ceikry 2022-03-31 21:47:12 -05:00
parent 1eacc62a0d
commit 473d7b201a

View file

@ -82,7 +82,7 @@ object ClassScanner {
PlayerScripts.identifierMap[identifier] =
PlayerScripts.PlayerScript(identifier, description, name, res.loadClass())
}
result.getClassesImplementing("api.StartupListener").forEach {
result.getClassesImplementing("api.StartupListener").filter { !it.isAbstract }.forEach {
try {
val clazz = it.loadClass().newInstance() as StartupListener
GameWorld.startupListeners.add(clazz)