Я написал код, все отредактировал, и думаю :
Запускаю и,.... Майнкрафт запускается , и вылетает! С клиентом все нормально, что то странно либо с кодом, либо с читом.
Предоставляю логи:
---- Minecraft Crash Report ----
// My bad.
Time: 26.01.2025, 19:15
Description: Initializing game
java.lang.ClassCastException: class com.google.gson.JsonNull cannot be cast to class com.google.gson.JsonObject (com.google.gson.JsonNull and com.google.gson.JsonObject are in unnamed module of loader 'app')
at ru.locker.config.ConfigStorage.loadConfiguration(ConfigStorage.java:77)
at ru.locker.config.ConfigStorage.setupFolder(ConfigStorage.java:35)
at ru.locker.config.ConfigStorage.init(ConfigStorage.java:28)
at ru.locker.Locker.clientLoad(Locker.java:185)
at ru.locker.Locker.<init>(Locker.java:147)
at net.minecraft.client.Minecraft.<init>(Minecraft.java:430)
at net.minecraft.client.main.Main.main(Main.java:156)
at Start.main(Start.java:13)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at ru.locker.config.ConfigStorage.loadConfiguration(ConfigStorage.java:77)
at ru.locker.config.ConfigStorage.setupFolder(ConfigStorage.java:35)
at ru.locker.config.ConfigStorage.init(ConfigStorage.java:28)
at ru.locker.Locker.clientLoad(Locker.java:185)
at ru.locker.Locker.<init>(Locker.java:147)
at net.minecraft.client.Minecraft.<init>(Minecraft.java:430)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:156)
at Start.main(Start.java:13)
-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Windows 10 (amd64) version 10.0
Java Version: 18.0.2, Amazon.com Inc.
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Amazon.com Inc.
Memory: 94380776 bytes (90 MB) / 209715200 bytes (200 MB) up to 2095054848 bytes (1998 MB)
CPUs: 4
JVM Flags: 0 total;
Launched Version: mcp
Backend library: LWJGL version 3.2.2 build 10
Backend API: Intel(R) UHD Graphics GL version 4.6.0 - Build 27.20.100.9664, Intel
GL Caps: Using framebuffer using OpenGL 3.0
Using VBOs: Yes
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
CPU: 4x Intel(R) Core(TM) i3-1005G1 CPU @ 1.20GHz
OptiFine Version: OptiFine_1.16.5_HD_U_G8
OptiFine Build: ~~NULL~~
Render Distance Chunks: 2
Mipmaps: 4
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
Shaders: null
OpenGlVersion: 4.6.0 - Build 27.20.100.9664
OpenGlRenderer: Intel(R) UHD Graphics
OpenGlVendor: Intel
CpuCount: 4
Прошу помочь, кто поможет - огромный поклон.