Add soft dependency for Multiverse compatibility

If ES gets enabled before Multiverse does, ESSystems in worlds other
than the default will misbehave, because Multiverse hasn't loaded their
worlds yet. This means getWorld() returns null for those worlds and the
Location baked into the ESSystem is wrong.

Adding a soft dependency on MV-Core ensures that ES gets enabled after
MV, and thus, after all the game worlds are loaded.
This commit is contained in:
B. Kelly 2020-07-17 14:09:51 -04:00 committed by B. Kelly
parent 77a426a85b
commit fdad6e099f
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.seanomik</groupId> <groupId>net.seanomik</groupId>
<artifactId>energeticstorage</artifactId> <artifactId>energeticstorage</artifactId>
<version>0.2-SNAPSHOT</version> <version>0.2.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>EnergeticStorage</name> <name>EnergeticStorage</name>

View File

@ -3,6 +3,7 @@ version: ${project.version}
main: net.seanomik.energeticstorage.EnergeticStorage main: net.seanomik.energeticstorage.EnergeticStorage
api-version: 1.15 api-version: 1.15
authors: [SeanOMik] authors: [SeanOMik]
softdepend: [Multiverse-Core]
commands: commands:
esgive: esgive:
aliases: [egive] aliases: [egive]