Err, that was supposed to be for FLAMMABLE. But, yeah the main issue is the bloody inefficiency of the fire code, which I had started to refactor and should probably continue.

Everything works otherwise, the PR I made to this PR has functions for cache-to-vars, but they don't need to be in this pr.