Update "Reflection is broken" section
This commit is contained in:
parent
b694a33180
commit
d6e56f8dd9
1 changed files with 2 additions and 3 deletions
|
@ -34,9 +34,8 @@ It can do the following things:
|
|||
## Known issues
|
||||
### Reflection is broken
|
||||
Due to how the mod and plugin loaders load JAR files, scanning the classpath for annotations does not work.
|
||||
This means that the entire event system and automatic subsystem detection is broken.
|
||||
We're waiting for sos!engine developers to implement methods for manually registering subsystems and event listeners.
|
||||
Until then, use other methods for initializing subsystems and sending events and data around.
|
||||
This means that events have to be registered manually. You can do that by calling [EventHelper#registerEvent](https://jd.engine.staropensource.de/v1-alpha5/base/de/staropensource/sosengine/base/implementable/helper/EventHelper.html#registerEvent(java.lang.Class,de.staropensource.sosengine.base.implementable.EventListenerCode,de.staropensource.sosengine.base.type.EventPriority)).
|
||||
If you want to use a specific subsystem, either find or make a plugin/mod porting that subsystem to Minecraft (best option), or shade and include the subsystem in your final JAR and hope nothing breaks. Only do that if you have no other choice or the subsystem is specific to your plugin or modification.
|
||||
|
||||
## Contributing
|
||||
Please see [sos!engine's contributing section](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/README.md#contributing)
|
||||
|
|
Loading…
Reference in a new issue