Skip to content

Commit

Permalink
Fixed config getting checked before it loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Aug 19, 2024
1 parent 6aeb504 commit 97899ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mod_name=Dark Mode Everywhere
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.21-1.3.2
mod_version=1.21-1.3.3
mod_group_id=com.buuz135
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
mod_authors=Buuz135
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private Tooltip getShaderSwitchButtonTooltip() {

@SubscribeEvent
public void openGui(ScreenEvent.Init.Pre event){
if (event.getScreen() instanceof AbstractContainerScreen || (DarkConfig.CLIENT.SHOW_BUTTON_IN_TITLE_SCREEN.get() && event.getScreen() instanceof TitleScreen)){
if (event.getScreen() instanceof AbstractContainerScreen || (event.getScreen() instanceof TitleScreen && DarkConfig.CLIENT.SHOW_BUTTON_IN_TITLE_SCREEN.get())){
int x = DarkConfig.CLIENT.GUI_BUTTON_X_OFFSET.get();
int y = DarkConfig.CLIENT.GUI_BUTTON_Y_OFFSET.get();
if (event.getScreen() instanceof TitleScreen){
Expand Down

0 comments on commit 97899ea

Please sign in to comment.