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

Don't tick the preview world from updateFormedValid #608

Merged
merged 2 commits into from
Feb 22, 2022

Conversation

ALongStringOfNumbers
Copy link
Contributor

What:

Don't call updateFormedValid if the world is the JEI preview world.

When launching the game with a debug breakpoint in ARL#trySearchNewRecipe, I noticed that the breakpoint would get hit several times before loading the game finished, by the PBF, Coke Oven, Fusion Reactor, and Steam Multiblocks specifically.

I have therefore added a check that we are not in the JEI preview world before ticking updateFormedValid.
The check cannot be at the main if statement, where it is checked if(!getWorld.isRemote()) as we still need to call checkStructurePattern so that the multiblocks are formed in the JEI previews.

@serenibyss serenibyss merged commit a9877da into master Feb 22, 2022
@serenibyss serenibyss deleted the tick-preview-world branch February 22, 2022 01:37
ChromaPIE added a commit to ChromaPIE/GregTech that referenced this pull request Feb 22, 2022
* Grab default meta when meta exceeds allowed values for meta blocks (GregTechCEu#621)

- Prevents world corrupting crash

* Logic hacking for certain contexts to abide to the correct StoneType (GregTechCEu#638)

* Rework Metafluids (GregTechCEu#542)

* rework metafluids

* add acid type to acids

* improve ct fluid validation

* material getter

* some ct support

* fluid state tooltip for each FluidType

* requested changes

* fix wrong fluid names

* fix FluidTooltipUtil method

* fix all fluid tooltips

* UU matter tooltip

* explicitly block plasmas in the fluid CT method

* fix plasma unlocalized names

* make fluid tooltips smart

* fix custom acid material textures

* fix vanilla fluid tooltips

* fix failing tests

* fix tooltip and ct error logging

* undo test "fix"

* more review comments

* change maps

* stop using lowercase

* use computeIfAbsent

* fix empty tooltips on items

* stop trying to register all fluids twice and fix temperatures

* Minor recipe and formula fixes (GregTechCEu#624)

* dimethylbenzene and 3,3-dichlorobenzidine ratio fixes

* fix IV Coil voltage

* disable Nitrobenzene decomposition to prevent dupes

* fix Butene formula

* fix Ethenone and Methyl Acetate formula

* fix Vinyl Acetate formula

* fix Monochloramine and Allyl Chloride formula

* fix Allyl Chloride properties

* Make sugar C6H12O6, like an actual carbohydrate

* fix Liquid Air formula

Co-authored-by: bruberu <[email protected]>

* Fix `drawFluidForGui` drawing incorrectly for some mods

* Fix fluid prospector crash on servers (GregTechCEu#676)

* fix problems with chanced outputs in jei (GregTechCEu#675)

* Maintenance fix (GregTechCEu#677)

* Fix muffler particles having little pos variation

* Polycaprolactam processing revamp (GregTechCEu#600)

* Polycaprolactam chain

* Use Blast Furnace instead

* Address review comments

* Fix problems (again)

* Update and use FluidTypes

* Third time's the charm?

* Change which event blocks were created in (GregTechCEu#535)

* Allow Robot Arms to Supply Exact more than 1 stack (GregTechCEu#635)

* Don't tick the preview world from updateFormedValid (GregTechCEu#608)

* UTF-8 (GregTechCEu#678)

Co-authored-by: Rongmario <[email protected]>
Co-authored-by: TechLord22 <[email protected]>
Co-authored-by: m2r1k5 <[email protected]>
Co-authored-by: bruberu <[email protected]>
Co-authored-by: DStrand1 <[email protected]>
Co-authored-by: Syrcan <[email protected]>
Co-authored-by: ALongStringOfNumbers <[email protected]>
Co-authored-by: KilaBash <[email protected]>
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.

3 participants