8000 Better support for opening EMI screens from non-handled screens by Abbie5 · Pull Request #946 · emilyploszaj/emi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Better support for opening EMI screens from non-handled screens #946

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

Open
wants to merge 1 commit into
base: 1.21
Choose a base branch
from

Conversation

Abbie5
Copy link
Contributor
@Abbie5 Abbie5 commented May 12, 2025

This fixes the behaviour where, upon closing the recipe screen that was opened from the FTB Quests screen, the client is returned to the inventory screen instead of the original quest screen.

This fixes the behaviour where, upon closing the recipe screen that was opened from the FTB Quests screen, the client is returned to the inventory screen instead of the original quest screen.
Copy link
Owner
@emilyploszaj emilyploszaj left a comment

Choose a reason for hiding this comment

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

This likely works to fix this issue, but does it cause other issues? for instance, if you open from another GUI, it'll show no recipes as craftable, even if they may be craftable via the currently open screen handler? maybe getHandledScreen should default to that so we can support both use cases.

@@ -97,6 +97,7 @@ public static <T extends ScreenHandler> List<EmiRecipeHandler<T>> getAllHandlers

@SuppressWarnings("unchecked")
public static <T extends ScreenHandler> @Nullable EmiRecipeHandler<T> getFirstValidHandler(EmiRecipe recipe, HandledScreen<T> screen) {
if (screen == null) return null;
Copy link
Owner

Choose a reason for hiding this comment

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

Nit: EMI codebase style has brackets for all if statements

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
0