Make custom emitter work

I had to make this mod to get custom emitters to work. I hope this is useful to someone!