I am trying to create a 1.12.2 hacked client for minecraft (just for coding experience not planning on releasing) and I just finished doing the sprint module, but when I try to join a world or server the client crashes and gives me this error.
Error:
java.lang.NullPointerException: Ticking entity
at me.endureblackout.client.modules.Sprint.onPreUpdat e(Sprint.java:18)
at me.endureblackout.client.Client.onPreUpdate(Client .java:33)
at net.minecraft.client.entity.EntityPlayerSP.onUpdat eWalkingPlayer(EntityPlayerSP.java:263)
at net.minecraft.client.entity.EntityPlayerSP.onUpdat e(EntityPlayerSP.java:252)
at net.minecraft.world.World.updateEntityWithOptional Force(World.java:1991)
at net.minecraft.world.World.updateEntity(World.java: 1955)
at net.minecraft.world.World.updateEntities(World.jav a:1795)
at net.minecraft.client.Minecraft.runTick(Minecraft.j ava:1955)
at net.minecraft.client.Minecraft.runGameLoop(Minecra ft.java:1182)
at net.minecraft.client.Minecraft.run(Minecraft.java: 475)
at net.minecraft.client.main.Main.main(Main.java:115)
at Start.main(Start.java:11)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at me.endureblackout.client.modules.Sprint.onPreUpdat e(Sprint.java:18)
at me.endureblackout.client.Client.onPreUpdate(Client .java:33)
at net.minecraft.client.entity.EntityPlayerSP.onUpdat eWalkingPlayer(EntityPlayerSP.java:263)
at net.minecraft.client.entity.EntityPlayerSP.onUpdat e(EntityPlayerSP.java:252)
at net.minecraft.world.World.updateEntityWithOptional Force(World.java:1991)
at net.minecraft.world.World.updateEntity(World.java: 1955)
I am trying to create a 1.12.2 hacked client for minecraft (just for coding experience not planning on releasing) and I just finished doing the sprint module, but when I try to join a world or server the client crashes and gives me this error.
Error:
java.lang.NullPointerException: Ticking entity
at me.endureblackout.client.modules.Sprint.onPreUpdat e(Sprint.java:18)
at me.endureblackout.client.Client.onPreUpdate(Client .java:33)
at net.minecraft.client.entity.EntityPlayerSP.onUpdat eWalkingPlayer(EntityPlayerSP.java:263)
at net.minecraft.client.entity.EntityPlayerSP.onUpdat e(EntityPlayerSP.java:252)
at net.minecraft.world.World.updateEntityWithOptional Force(World.java:1991)
at net.minecraft.world.World.updateEntity(World.java: 1955)
at net.minecraft.world.World.updateEntities(World.jav a:1795)
at net.minecraft.client.Minecraft.runTick(Minecraft.j ava:1955)
at net.minecraft.client.Minecraft.runGameLoop(Minecra ft.java:1182)
at net.minecraft.client.Minecraft.run(Minecraft.java: 475)
at net.minecraft.client.main.Main.main(Main.java:115)
at Start.main(Start.java:11)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at me.endureblackout.client.modules.Sprint.onPreUpdat e(Sprint.java:18)
at me.endureblackout.client.Client.onPreUpdate(Client .java:33)
at net.minecraft.client.entity.EntityPlayerSP.onUpdat eWalkingPlayer(EntityPlayerSP.java:263)
at net.minecraft.client.entity.EntityPlayerSP.onUpdat e(EntityPlayerSP.java:252)
at net.minecraft.world.World.updateEntityWithOptional Force(World.java:1991)
at net.minecraft.world.World.updateEntity(World.java: 1955)
-- Entity being ticked --
Details:
Entity Type: null (net.minecraft.client.entity.EntityPlayerSP)
Entity ID: 119
Entity Name: Player754
Entity's Exact location: 575.45, 68.00, 194.12
Entity's Block location: World: (575,68,194), Chunk: (at 15,4,2 in 35,12; contains blocks 560,0,192 to 575,255,207), Region: (1,0; contains chunks 32,0 to 63,31, blocks 512,0,0 to 1023,255,511)
Entity's Momentum: 0.00, -0.08, 0.00
Entity's Passengers: []
Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.world.World.updateEntities(World.jav a:1795)
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Player754'/119, l='MpServer', x=575.45, y=68.00, z=194.12]]
Chunk stats: MultiplayerChunkCache: 289, 289
Level seed: 0
Level generator: ID 02 - largeBiomes, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (584,64,166), Chunk: (at 8,4,6 in 36,10; contains blocks 576,0,160 to 591,255,175), Region: (1,0; contains chunks 32,0 to 63,31, blocks 512,0,0 to 1023,255,511)
Level time: 2359 game time, 1739 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 21 total; [EntityBat['Bat'/43, l='MpServer', x=588.25, y=26.86, z=154.80], EntityBat['Bat'/44, l='MpServer', x=580.25, y=28.83, z=165.35], EntityBat['Bat'/45, l='MpServer', x=589.89, y=29.68, z=194.27], EntityBat['Bat'/46, l='MpServer', x=586.31, y=28.65, z=195.28], EntityBat['Bat'/78, l='MpServer', x=623.06, y=16.62, z=200.65], EntitySquid['Squid'/15, l='MpServer', x=519.70, y=51.48, z=138.97], EntityRabbit['Rabbit'/47, l='MpServer', x=591.50, y=70.48, z=267.85], EntitySquid['Squid'/16, l='MpServer', x=522.58, y=53.68, z=142.98], EntityRabbit['Rabbit'/48, l='MpServer', x=587.50, y=69.00, z=269.50], EntitySquid['Squid'/17, l='MpServer', x=527.78, y=52.79, z=139.15], EntitySquid['Squid'/18, l='MpServer', x=524.82, y=49.81, z=150.52], EntityBat['Bat'/19, l='MpServer', x=514.18, y=52.00, z=171.33], EntityBat['Bat'/20, l='MpServer', x=515.76, y=42.06, z=207.25], EntityBat['Bat'/21, l='MpServer', x=515.70, y=47.26, z=220.61], EntityBat['Bat'/53, l='MpServer', x=597.20, y=25.04, z=158.20], EntityBat['Bat'/54, l='MpServer', x=604.47, y=35.11, z=184.29], EntityBat['Bat'/55, l='MpServer', x=603.55, y=34.00, z=188.07], EntityBat['Bat'/56, l='MpServer', x=590.34, y=31.16, z=193.47], EntitySquid['Squid'/25, l='MpServer', x=534.87, y=54.33, z=141.59], EntitySquid['Squid'/27, l='MpServer', x=531.35, y=55.62, z=151.53], EntityPlayerSP['Player754'/119, l='MpServer', x=575.45, y=68.00, z=194.12]]
Retry entities: 0 total; []
Server brand: vanilla
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWo rldInfoToCrashReport(WorldClient.java:520)
at net.minecraft.client.Minecraft.addGraphicsAndWorld ToCrashReport(Minecraft.java:2993)
at net.minecraft.client.Minecraft.run(Minecraft.java: 496)
at net.minecraft.client.main.Main.main(Main.java:115)
at Start.main(Start.java:11)
-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_201, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 800924184 bytes (763 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 99
Launched Version: mcp
LWJGL: 2.9.4
OpenGL: Intel(R) HD Graphics 620 GL version 4.5.0 - Build 25.20.100.6472, Intel
GL Caps: Using GL 1.3 multitexturing
And here are my classes:
Client Class: https://hastebin.com/taqoxidoyu.java
Module Manager Class: https://hastebin.com/sexixadido.java
Module Class: https://hastebin.com/rasusepota.java
Category Enum: https://hastebin.com/ufofifiqub.java
Sprint Class: https://hastebin.com/xiqunisano.java
Any help is appreciated!