-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fixed #2429 Previewing a world breaks world preview for remainder of game session #2815
Conversation
Can one of the admins please verify this patch? |
Hooray Jenkins reported success with all tests good! |
1 similar comment
Hooray Jenkins reported success with all tests good! |
@Cervator Please test and review the changes. Solved the issue. |
…preview for remainder of game session
…game after previewing and re-entering again crashes the game
Hooray Jenkins reported success with all tests good! |
Tested out and merged! I saw the two module PRs and left some comments there, still need to merge those. I'm adding some more notes on what's left in the GSOC scope #2774 - that way we can let the two associated issues to this count as being fixed :-) |
Contains
Fixes #2429 and partially fixes #2509
How to test
For issue 2429
For issue 2509
The 1st problem is not yet tackled but the reason for lag is the setting the environment which causes the assets to reload and when back button is pressed the environment is reset which also causes assets to reload and hence I think the lag
The 2nd problem in this issue is actually the above issue which is fixed
The 3rd problem is tackled in the commit for issue 2509 in which the game crashes or will be needed process killed.
Note: The 2nd and 3rd problem imployed the same solution as the problem was same that the variables(with @it above them) that referenced to Core Registry for values were set to null.
I don't think the fourth problem is actually because of preview Class. The null pointer exception in this case is due to world i.e. what we get from worldGenerator.getWorld() being null and further use of world variable causes null pointer exception. I think the problem in this case is with the world creation procedure in this specific module because the world is not even fully loaded when the player is spawned in the game.
PS: solved the tta preview problem. Now it opens preview but does not show anything as its preview functionality is not defined. I think that should be made into another issue and this issue should be closed.
pr 3 in ClimateConditions and pr from new branch 'shine1' in WoodAndStone are made for this issue