-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ben/mv5/core api #667
Ben/mv5/core api #667
Conversation
tasks.register('runHabitatGenerator', JavaExec) { | ||
classpath = configurations["compileClasspath"] | ||
mainClass.set('org.mvplugins.multiverse.external.jvnet.hk2.generator.HabitatGenerator') | ||
|
||
args = [ | ||
'--file', "build/libs/multiverse-portals-$version" + ".jar", | ||
'--locator', 'Multiverse-Portals', | ||
] | ||
} | ||
tasks.named("build") { finalizedBy("runHabitatGenerator") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the heck is this?
this.worldManager = this.plugin.getServiceLocator().getService(WorldManager.class); | ||
this.destinationsProvider = this.plugin.getServiceLocator().getService(DestinationsProvider.class); | ||
this.blockSafety = this.plugin.getServiceLocator().getService(BlockSafety.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these just be injected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can’t do it bcu MVPortal can’t be a service, at least not with the current implementation. Bcu you need a instance of MVPortal for every portal created.
Co-authored-by: Jeremy Wood <[email protected]>
No description provided.