Fix daylight detectors when using texture packs