Краш из-за индекса слота

Версия Minecraft
1.7.10
459
13
35
Всем привет.
Почему-то краши из-за кастом инвента..
Насколько я понял из-за индекса слота.
Прошу помощи, заранее благодарен.
 
Краш-лог
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 02.09.18 3:30
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException: 15
at nice.clientplayer.InventoryCustomPlayer.getStackInSlot(InventoryCustomPlayer.java:38)
at net.minecraft.inventory.Slot.getStack(Slot.java:67)
at net.minecraft.inventory.Container.detectAndSendChanges(SourceFile:77)
at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:212)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2070)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:648)
at net.minecraft.world.World.updateEntity(World.java:2034)
at net.minecraft.world.World.updateEntities(World.java:1887)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:489)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:636)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at nice.clientplayer.InventoryCustomPlayer.getStackInSlot(InventoryCustomPlayer.java:38)
at net.minecraft.inventory.Slot.getStack(Slot.java:67)
at net.minecraft.inventory.Container.detectAndSendChanges(SourceFile:77)
at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:212)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2070)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:648)
at net.minecraft.world.World.updateEntity(World.java:2034)

-- Entity being ticked --
Details:
Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
Entity ID: 276
Entity Name: Player171
Entity's Exact location: -749,99, 9,00, -764,70
Entity's Block location: World: (-750,9,-765), Chunk: (at 2,0,3 in -47,-48; contains blocks -752,0,-768 to -737,255,-753), Region: (-2,-2; contains chunks -64,-64 to -33,-33, blocks -1024,0,-1024 to -513,255,-513)
Entity's Momentum: 0,00, -0,08, 0,00
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:1887)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:489)

-- Affected level --
Details:
Level name: Новый мир
All players: 1 total; [EntityPlayerMP['Player171'/276, l='Новый мир', x=-749,99, y=9,00, z=-764,70]]
Chunk stats: ServerChunkCache: 280 Drop: 0
Level seed: 5291570417553744079
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options:
Level spawn location: World: (-736,4,-752), Chunk: (at 0,0,0 in -46,-47; contains blocks -736,0,-752 to -721,255,-737), Region: (-2,-2; contains chunks -64,-64 to -33,-33, blocks -1024,0,-1024 to -513,255,-513)
Level time: 100449 game time, 62518 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 25653 (now: false), thunder time: 22231 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:636)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.7.0_71, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 719797920 bytes (686 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 4 total; -Xincgc -Xmx1024M -Xms1024M -Xmx1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 5 mods loaded, 5 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeBin-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeBin-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA hud{1.0} [HUD] (bin)
UCHIJAAAA inv{0.1} [Inventory] (bin)
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player171'/276, l='Новый мир', x=-749,99, y=9,00, z=-764,70]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
Краш-лог:
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 02.09.18 3:30
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException: 15
	at nice.clientplayer.InventoryCustomPlayer.getStackInSlot(InventoryCustomPlayer.java:38)
	at net.minecraft.inventory.Slot.getStack(Slot.java:67)
	at net.minecraft.inventory.Container.detectAndSendChanges(SourceFile:77)
	at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:212)
	at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2070)
	at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:648)
	at net.minecraft.world.World.updateEntity(World.java:2034)
	at net.minecraft.world.World.updateEntities(World.java:1887)
	at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:489)
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:636)
	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:547)
	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
	at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at nice.clientplayer.InventoryCustomPlayer.getStackInSlot(InventoryCustomPlayer.java:38)
	at net.minecraft.inventory.Slot.getStack(Slot.java:67)
	at net.minecraft.inventory.Container.detectAndSendChanges(SourceFile:77)
	at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:212)
	at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2070)
	at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:648)
	at net.minecraft.world.World.updateEntity(World.java:2034)

-- Entity being ticked --
Details:
	Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
	Entity ID: 276
	Entity Name: Player171
	Entity's Exact location: -749,99, 9,00, -764,70
	Entity's Block location: World: (-750,9,-765), Chunk: (at 2,0,3 in -47,-48; contains blocks -752,0,-768 to -737,255,-753), Region: (-2,-2; contains chunks -64,-64 to -33,-33, blocks -1024,0,-1024 to -513,255,-513)
	Entity's Momentum: 0,00, -0,08, 0,00
Stacktrace:
	at net.minecraft.world.World.updateEntities(World.java:1887)
	at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:489)

-- Affected level --
Details:
	Level name: Новый мир
	All players: 1 total; [EntityPlayerMP['Player171'/276, l='Новый мир', x=-749,99, y=9,00, z=-764,70]]
	Chunk stats: ServerChunkCache: 280 Drop: 0
	Level seed: 5291570417553744079
	Level generator: ID 01 - flat, ver 0. Features enabled: true
	Level generator options: 
	Level spawn location: World: (-736,4,-752), Chunk: (at 0,0,0 in -46,-47; contains blocks -736,0,-752 to -721,255,-737), Region: (-2,-2; contains chunks -64,-64 to -33,-33, blocks -1024,0,-1024 to -513,255,-513)
	Level time: 100449 game time, 62518 day time
	Level dimension: 0
	Level storage version: 0x04ABD - Anvil
	Level weather: Rain time: 25653 (now: false), thunder time: 22231 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:636)
	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:547)
	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
	at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

-- System Details --
Details:
	Minecraft Version: 1.7.10
	Operating System: Windows 8.1 (amd64) version 6.3
	Java Version: 1.7.0_71, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 719797920 bytes (686 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
	JVM Flags: 4 total; -Xincgc -Xmx1024M -Xms1024M -Xmx1024M
	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 5 mods loaded, 5 mods active
	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
	UCHIJAAAA	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
	UCHIJAAAA	FML{7.10.99.99} [Forge Mod Loader] (forgeBin-1.7.10-10.13.4.1558-1.7.10.jar) 
	UCHIJAAAA	Forge{10.13.4.1558} [Minecraft Forge] (forgeBin-1.7.10-10.13.4.1558-1.7.10.jar) 
	UCHIJAAAA	hud{1.0} [HUD] (bin) 
	UCHIJAAAA	inv{0.1} [Inventory] (bin) 
	GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
	Profiler Position: N/A (disabled)
	Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
	Player Count: 1 / 8; [EntityPlayerMP['Player171'/276, l='Новый мир', x=-749,99, y=9,00, z=-764,70]]
	Type: Integrated Server (map_client.txt)
	Is Modded: Definitely; Client brand changed to 'fml,forge'
Сверху