mojira.dev
MC-117563

Crash when using enchanted bow to craft dispenser via recipe book

Use recipe book in the crafting table for testing.

---- Minecraft Crash Report ----
// Shall we play a game?

Time: 5/17/17 9:04 PM
Description: Updating screen events

java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.Arrays$ArrayList.get(Unknown Source)
	at fi.get(SourceFile:44)
	at aea.a(SourceFile:552)
	at bno.a(SourceFile:884)
	at bno.a(SourceFile:868)
	at bno.a(SourceFile:774)
	at bno.a(SourceFile:718)
	at bnp.a(SourceFile:154)
	at bnp.a(SourceFile:136)
	at bnp.a(SourceFile:121)
	at bno.a(SourceFile:572)
	at bmk.a(SourceFile:87)
	at blh.k(SourceFile:387)
	at blh.p(SourceFile:364)
	at bhy.t(SourceFile:1583)
	at bhy.ax(SourceFile:966)
	at bhy.a(SourceFile:406)
	at net.minecraft.client.main.Main.main(SourceFile:123)


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

-- Head --
Thread: Client thread
Stacktrace:
	at java.util.Arrays$ArrayList.get(Unknown Source)
	at fi.get(SourceFile:44)
	at aea.a(SourceFile:552)
	at bno.a(SourceFile:884)
	at bno.a(SourceFile:868)
	at bno.a(SourceFile:774)
	at bno.a(SourceFile:718)
	at bnp.a(SourceFile:154)
	at bnp.a(SourceFile:136)
	at bnp.a(SourceFile:121)
	at bno.a(SourceFile:572)
	at bmk.a(SourceFile:87)
	at blh.k(SourceFile:387)
	at blh.p(SourceFile:364)

-- Affected screen --
Details:
	Screen name: bmk

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [buc['SteveKunG'/4, l='MpServer', x=-90.75, y=56.00, z=540.00]]
	Chunk stats: MultiplayerChunkCache: 289, 289
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 
	Level spawn location: World: (-161,56,575), Chunk: (at 15,3,15 in -11,35; contains blocks -176,0,560 to -161,255,575), Region: (-1,1; contains chunks -32,32 to -1,63, blocks -512,0,512 to -1,255,1023)
	Level time: 17948460 game time, 6000 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: 1 total; [buc['SteveKunG'/4, l='MpServer', x=-90.75, y=56.00, z=540.00]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at bsa.a(SourceFile:365)
	at bhy.b(SourceFile:2545)
	at bhy.a(SourceFile:415)
	at net.minecraft.client.main.Main.main(SourceFile:123)

-- System Details --
Details:
	Minecraft Version: 1.12-pre3
	Operating System: Windows 8.1 (amd64) version 6.3
	Java Version: 1.8.0_131, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 145062024 bytes (138 MB) / 344674304 bytes (328 MB) up to 2134114304 bytes (2035 MB)
	JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 1.12-pre3
	LWJGL: 2.9.4
	OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 378.66, NVIDIA Corporation
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: vanilla_model_rendering_fix_1.12+.zip
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	CPU: 6x AMD FX(tm)-6300 Six-Core Processor

Linked issues

Attachments

Comments 1

Note, the recipe shows as available even when you only have enchanted bows in your inventory.

I don't know if it is intended to be able to craft dispensers with enchanted (or damaged?) bows, but either way this is still causing issues.

Personally, I would vote for enchanted and damaged bows being valid when crafting manually, but not used by the recipe book (since it is too easy to accidentally craft away your best bow). If that is too clunky, then I would vote against crafting with enchanted bows.

SteveKunG

migrated

Confirmed

bow, crash, dispenser, enchant, recipe-book

Minecraft 1.12 Pre-Release 3

Minecraft 1.12 Pre-Release 4

Retrieved