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

Refactor LDLib calls #2609

Merged
merged 27 commits into from
Jan 4, 2025
Merged

Conversation

omergunr100
Copy link
Contributor

@omergunr100 omergunr100 commented Dec 21, 2024

What

Refactored some rendering code and replaced the ldlib mod load check with the forge method.
Unldlibning wherever possible without losing my sanity.

Implementation Details

Refactored some conditions in rendering code to use the appropriate methods.
Refactored mod load checks to use native forge methods instead of ldlib method.

Outcome

Reduced LDLib Dependency

@krossgg krossgg added the type: bugfix general bug fixes label Dec 21, 2024
If your ball is too big for your mouth it's not yours.
@krossgg krossgg changed the title Fix PBF related NPEs (plus a minor refactor) Refactor LDLib calls Dec 21, 2024
@Spicierspace153 Spicierspace153 added the Do Not Merge DO NOT MERGE THIS PR YET! label Dec 21, 2024
…inge

# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/integration/emi/GTEMIPlugin.java
#	src/main/java/com/gregtechceu/gtceu/integration/emi/recipe/GTRecipeEMICategory.java
#	src/main/java/com/gregtechceu/gtceu/integration/jei/GTJEIPlugin.java
#	src/main/java/com/gregtechceu/gtceu/integration/jei/recipe/GTRecipeJEICategory.java
#	src/main/java/com/gregtechceu/gtceu/integration/rei/GTREIPlugin.java
#	src/main/java/com/gregtechceu/gtceu/integration/rei/recipe/GTRecipeREICategory.java
src/main/java/com/gregtechceu/gtceu/GTCEu.java Outdated Show resolved Hide resolved
src/main/java/com/gregtechceu/gtceu/GTCEu.java Outdated Show resolved Hide resolved
src/main/java/com/gregtechceu/gtceu/GTCEu.java Outdated Show resolved Hide resolved
@krossgg krossgg added type: refactor Suggestion to refactor a section of code and removed type: bugfix general bug fixes labels Dec 30, 2024
replace xei loaded checks in jei loaded check with just the isModLoaded check.
moved frozen registry shenanigans to GTRegistries and an event listener to replace the mixin (seems to be working fine).
omergunr100 and others added 2 commits December 31, 2024 18:11
# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/client/ClientProxy.java
#	src/main/java/com/gregtechceu/gtceu/data/recipe/CraftingComponent.java
#	src/main/java/com/gregtechceu/gtceu/integration/map/GroupingMapRenderer.java
#	src/main/java/com/gregtechceu/gtceu/integration/map/WaypointManager.java
#	src/main/java/com/gregtechceu/gtceu/integration/map/xaeros/XaerosMapPlugin.java
@screret screret merged commit 085e73f into GregTechCEu:1.20.1 Jan 4, 2025
2 checks passed
@omergunr100 omergunr100 deleted the 1.20.1-rendering-cringe branch January 4, 2025 10:54
@FakeDomi FakeDomi mentioned this pull request Jan 10, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do Not Merge DO NOT MERGE THIS PR YET! type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants