mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-26 12:35:54 +01:00
fixup! Load ClassicItemSelectionScreen after Minecraft has initialized
This commit is contained in:
parent
da7c0eea1a
commit
eb65c6aa72
@ -34,13 +34,12 @@ import de.florianmichael.viafabricplus.event.PreLoadCallback;
|
|||||||
import de.florianmichael.viafabricplus.information.InformationSystem;
|
import de.florianmichael.viafabricplus.information.InformationSystem;
|
||||||
import de.florianmichael.viafabricplus.protocolhack.ProtocolHack;
|
import de.florianmichael.viafabricplus.protocolhack.ProtocolHack;
|
||||||
import de.florianmichael.viafabricplus.settings.SettingsSystem;
|
import de.florianmichael.viafabricplus.settings.SettingsSystem;
|
||||||
import net.fabricmc.api.ModInitializer;
|
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
public class ViaFabricPlus implements ModInitializer {
|
public class ViaFabricPlus {
|
||||||
public final static Gson GSON = new GsonBuilder().setPrettyPrinting().create();
|
public final static Gson GSON = new GsonBuilder().setPrettyPrinting().create();
|
||||||
public final static Logger LOGGER = LogManager.getLogger("ViaFabricPlus");
|
public final static Logger LOGGER = LogManager.getLogger("ViaFabricPlus");
|
||||||
public final static File RUN_DIRECTORY = new File("ViaFabricPlus");
|
public final static File RUN_DIRECTORY = new File("ViaFabricPlus");
|
||||||
@ -69,6 +68,8 @@ public class ViaFabricPlus implements ModInitializer {
|
|||||||
ProtocolHack.init();
|
ProtocolHack.init();
|
||||||
|
|
||||||
FinishMinecraftLoadCallback.EVENT.register(() -> {
|
FinishMinecraftLoadCallback.EVENT.register(() -> {
|
||||||
|
ClassicItemSelectionScreen.create();
|
||||||
|
|
||||||
// General settings
|
// General settings
|
||||||
settingsSystem.init();
|
settingsSystem.init();
|
||||||
informationSystem.init();
|
informationSystem.init();
|
||||||
@ -87,10 +88,4 @@ public class ViaFabricPlus implements ModInitializer {
|
|||||||
public InformationSystem getInformationSystem() {
|
public InformationSystem getInformationSystem() {
|
||||||
return informationSystem;
|
return informationSystem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// #68 - ViaFabricPlus make minecraft crash when run with Iceberg
|
|
||||||
@Override
|
|
||||||
public void onInitialize() {
|
|
||||||
ClassicItemSelectionScreen.create();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"modmenu": [
|
"modmenu": [
|
||||||
"de.florianmichael.viafabricplus.integration.ModMenuImpl"
|
"de.florianmichael.viafabricplus.integration.ModMenuImpl"
|
||||||
],
|
|
||||||
"main": [
|
|
||||||
"de.florianmichael.viafabricplus.ViaFabricPlus"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
|
Loading…
Reference in New Issue
Block a user