Skip to content
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

Merged
merged 4 commits into from
Nov 22, 2024
Merged

Ben/mv5/core api #667

merged 4 commits into from
Nov 22, 2024

Conversation

benwoo1110
Copy link
Member

No description provided.

Comment on lines +140 to +149
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") }
Copy link
Member

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?

Comment on lines +97 to +99
this.worldManager = this.plugin.getServiceLocator().getService(WorldManager.class);
this.destinationsProvider = this.plugin.getServiceLocator().getService(DestinationsProvider.class);
this.blockSafety = this.plugin.getServiceLocator().getService(BlockSafety.class);
Copy link
Member

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?

Copy link
Member Author

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.

dumptruckman
dumptruckman previously approved these changes Nov 21, 2024
@benwoo1110 benwoo1110 merged commit 795200f into MV5 Nov 22, 2024
1 check failed
@benwoo1110 benwoo1110 deleted the ben/mv5/core-api branch November 22, 2024 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants