Skip to content

Commit

Permalink
Fixed catalogue compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Dec 8, 2024
1 parent a1d7eff commit 15dcb0f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.10

- Fixed crash related to invalid catalogue compat setup

## 1.0.9

- Fixed typo causing invalid saving and loading of "disable_all_structures" option
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

public final class CatalogueCompat
{
public static Screen createConfigScreen(Screen screen, ModContainer container) {
public static Screen createConfigScreen(Screen currentScreen, ModContainer container) {
if (
!FabricLoader.getInstance().isModLoaded("catalogue")
|| !FabricLoader.getInstance().isModLoaded("yet_another_config_lib_v3")
) {
return null;
}

return new StructurifyConfigScreen(screen);
return new StructurifyConfigScreen(currentScreen);
}
}
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
},
"catalogue": {
"configFactory": "com.faboslav.structurify.fabric.CatalogueCompat",
"configFactory": "com.faboslav.structurify.common.modcompat.fabric.CatalogueCompat",
"icon": {
"image": "catalogue_icon.png"
},
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx4G
mod_java_version=[VERSIONED]
mod_name=Structurify
mod_id=structurify
mod_version=1.0.9
mod_version=1.0.10
mod_author=Faboslav
mod_description=Configuration mod that makes configuring everything related to structures very easy and accessible, eliminating the hassle of creating multiple datapacks.
mod_github_url=https://github.com/Faboslav/structurify
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.1/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ neoforge_version=
# Common
yacl_version=3.5.0+1.20.1
mod_menu_version=7.2.2
catalogue_version=1.7.1
catalogue_version=1.8.0

# Compat
global_datapacks_version=1.2
Expand Down

0 comments on commit 15dcb0f

Please sign in to comment.