public static void LightTiles(int firstX, int lastX, int firstY, int lastY) { Main.render = true; Lighting.UpdateGlobalBrightness(); Lighting._activeEngine.ProcessArea(new Rectangle(firstX, firstY, lastX - firstX, lastY - firstY)); }