Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit f23930a

Browse files
committed
fix: crash on Forge server (#67)
1 parent 248fef3 commit f23930a

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- '1.19'
7+
- '1.19.3'
88
paths-ignore:
99
- 'README.md'
1010
- 'LICENSE'

forge/src/main/java/com/github/franckyi/ibeeditor/forge/ForgeIBEEditorMod.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
public final class ForgeIBEEditorMod {
2828
public ForgeIBEEditorMod() {
2929
CommonInit.init();
30+
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onCommonInit);
3031
if (FMLLoader.getDist() == Dist.CLIENT) {
3132
ClientInit.init();
33+
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onClientInit);
34+
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onRegisterKeybindings);
3235
}
33-
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onCommonInit);
34-
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onClientInit);
35-
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onRegisterKeybindings);
3636
}
3737

3838
private void onRegisterKeybindings(RegisterKeyMappingsEvent event) {

forge/src/main/resources/META-INF/mods.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ logoFile = "logo.png"
88
modId = "ibeeditor"
99
version = "${version}"
1010
displayName = "IBE Editor"
11-
updateJSONURL = "https://raw.githubusercontent.com/Franckyi/IBE-Editor/1.19/forge_update.json"
11+
updateJSONURL = "https://raw.githubusercontent.com/Franckyi/IBE-Editor/1.19.3/forge_update.json"
1212
displayURL = "https://www.curseforge.com/minecraft/mc-mods/ibe-editor"
1313
credits = "Emex (logo)"
1414
authors = "Franckyi"

forge_update.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"homepage": "https://www.curseforge.com/minecraft/mc-mods/ibe-editor",
33
"promos": {
4-
"1.19-latest": "2.2.1",
5-
"1.19-recommended": "2.2.1",
6-
"1.19.1-latest": "2.2.1",
7-
"1.19.1-recommended": "2.2.1",
8-
"1.19.2-latest": "2.2.1",
9-
"1.19.2-recommended": "2.2.1"
4+
"1.19-latest": "2.2.2",
5+
"1.19-recommended": "2.2.2",
6+
"1.19.1-latest": "2.2.2",
7+
"1.19.1-recommended": "2.2.2",
8+
"1.19.2-latest": "2.2.2",
9+
"1.19.2-recommended": "2.2.2",
10+
"1.19.3-latest": "2.2.2",
11+
"1.19.3-recommended": "2.2.2"
1012
}
1113
}

gradle.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ org.gradle.daemon=false
44
# IBE Editor
55
minecraft_version=1.19.3
66
archives_base_name=IBEEditor
7-
mod_version=2.2.1
7+
mod_version=2.2.2
88
maven_group=com.github.franckyi.ibeeditor
99
# Fabric https://fabricmc.net/develop/
1010
fabric_loader_version=0.14.11
11-
fabric_api_version=0.68.1+1.19.3
11+
fabric_api_version=0.69.1+1.19.3
1212
# Forge https://files.minecraftforge.net/
13-
forge_version=44.0.5
13+
forge_version=44.0.37
1414
# Build and release info
1515
java_version=17
1616
major_minecraft_version=1.19.3

versions.json

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"2.2.2": {
3+
"type": "release",
4+
"changelog": "* fix: crash on Forge server (#67)"
5+
},
26
"2.2.1": {
37
"type": "release",
48
"changelog": "* fix: SNBT formatting breaks strings (#82)"

0 commit comments

Comments
 (0)