Added boolean for mods to check if stencil buffer is enabled