Skip to content

load cloned world with doLoad() instead of addWorld() (fixes #2378)#2379

Merged
dumptruckman merged 1 commit into
Multiverse:masterfrom
rti:master
Oct 5, 2020
Merged

load cloned world with doLoad() instead of addWorld() (fixes #2378)#2379
dumptruckman merged 1 commit into
Multiverse:masterfrom
rti:master

Conversation

@rti

@rti rti commented Aug 13, 2020

Copy link
Copy Markdown
Contributor

This pull request fixes #2378

We actually can skip all the WorldCreator setup done by addWorld() as the cloned world is ready and just needs to be loaded. Just using doLoad() enables us to cleanly apply the copied properties, which is the intention of this patch.

@nicegamer7 nicegamer7 mentioned this pull request Oct 1, 2020
21 tasks

@nicegamer7 nicegamer7 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Overall seems good. I just requested some style changes, nothing big.

Comment thread src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java Outdated
Comment thread src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java Outdated
Comment thread src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java Outdated
Comment thread src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java Outdated
@rti

rti commented Oct 1, 2020

Copy link
Copy Markdown
Contributor Author

Thanks a lot for the review. I addressed your comments.

@rti rti requested a review from nicegamer7 October 1, 2020 19:24
@rti

rti commented Oct 1, 2020

Copy link
Copy Markdown
Contributor Author

Not sure whether force-pushing was a good idea here. Github seems to be a bit confused now. Sorry. Hope that works for you.

Comment thread src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java Outdated
@nicegamer7

Copy link
Copy Markdown
Member

Force pushing is fine.

@benwoo1110

Copy link
Copy Markdown
Member

Also just a note, usually it's good to create a new branch when making a PR instead of using master.

@rti rti requested a review from nicegamer7 October 2, 2020 08:41
@rti

rti commented Oct 2, 2020

Copy link
Copy Markdown
Contributor Author

You are right. Would have been way cleaner. Though, I created my fork only to create this PR.

@rti

rti commented Oct 2, 2020

Copy link
Copy Markdown
Contributor Author

Hm, the travis build stopped while downloading something. Is there a way to re-trigger the build?

@nicegamer7

Copy link
Copy Markdown
Member

I figured out how to trigger a restart 👍.

@dumptruckman dumptruckman merged commit ad1b733 into Multiverse:master Oct 5, 2020
@dumptruckman

Copy link
Copy Markdown
Member

Awesome. Thank you for this!

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.

Cloning world initially applies default properties to cloned world

4 participants