Pressing escape does returns to inventory in certain cases
Gaming32 opened this issue ยท 2 comments
In the case where the current screen is not an HandledScreen
when a RecipeScreen
is opened, the screen returned to will be the inventory, not the screen returned to. This comes down to RecipeScreen.old
being of type HandledScreen
and a check occurring to switch to the inventory screen in the case of the current screen not being HandledScreen
:
emi/xplat/src/main/java/dev/emi/emi/api/EmiApi.java
Lines 241 to 243 in deef228
emi/xplat/src/main/java/dev/emi/emi/api/EmiApi.java
Lines 102 to 112 in deef228
This does not match the behavior of other recipe viewers and causes some less than ideal behavior with my mod, where it returns to the inventory screen instead of the bingo card screen.
This could definitely be improved, that handled screen requirement is, I believe, legacy behavior.