Fixed bug where spawned arrows could throw
ArrayIndexOutOfBoundsException. Fixes #1171