Water lava refactor

Minified water and lava rendering methods (mostly wrapped stuff into loops, as the copy-pasted code was just a loop unwrapped).